server-tools
server-tools copied to clipboard
[18.0][FIX] mail_cleanup: command CLOSE illegal in state AUTH, only allowed i…
…n states SELECTED
Fixing: https://github.com/OCA/server-tools/issues/3435
You need to have a server.select(). These selects are done into the methods _cleanup_fetchmail_server and _purge_fetchmail_server if you don't match any of the IF statements. You will never do the server.select() and thus endup with a stacktrace.
https://github.com/OCA/server-tools/blob/18.0/mail_cleanup/models/fetchmail_server.py#L125 https://github.com/OCA/server-tools/blob/18.0/mail_cleanup/models/fetchmail_server.py#L128C30-L128C53