Workaround for IMAP sync
IMAP sync is hindered by this bug: https://github.com/OfflineIMAP/offlineimap/issues/514
Unless there is a fix soon (see the linked BR's linked BR) we could write a workaround.
We could decide to create special Spam/Ham folders (name could be changed) and run a daily script retraining the contained mails and deleting them.To interact cleanly with the mailbox and also because we now use mdbox format, here are the proposed (untested) steps:
- doveadm search
- loop on GUIDs: * doveadm fetch * rspamc learn_spam/learn_ham * doveadm expunge