At work we have a limited storage quota on the email server so I have set up Dovecot on my laptop as an email archive that I also access using IMAP. Besides archiving I also store all email from mailing lists on the local server.
Recently I have been trying to rid myself of Thunderbird and use Emacs for all emailing and as part of that I have migrated my filter rules to
nnmail-split-fancy rules. However, so far I have not been able to get
nnmail to successfully move email from my inbox (company IMAP) to my archive (local Dovecot IMAP), is this at all possible to do?
My configuration looks something like this:
(add-to-list 'gnus-secondary-select-methods '(nnimap "[email protected]" ...)) (add-to-list 'gnus-secondary-select-methods '(nnimap "[email protected]" ...)) (setq nnimap-split-methods 'nnmail-split-fancy nnimap-split-download-body-default t nnmail-split-fancy '(| (: nnmail-split-fancy-with-parent) (list ".*linux-users.*" "[email protected]:Mailing Lists.Linux Users")))
I also tried appending "nnimap+" to the destination and various other combinations but every time an email matches the rule Gnus will simply create a folder called
[email protected]:Mailing Lists.Linux Users on the company IMAP server and move the email there instead of going to my local server.
My complete Gnus configuration, except for machine local settings, is available here.