server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

[18.0][FIX] mail_cleanup: command CLOSE illegal in state AUTH, only allowed i…

Open leemannd opened this issue 1 month ago • 0 comments

…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

leemannd avatar Nov 04 '25 10:11 leemannd