Hello Marko,
On 2025-06-24 10:54, Marko Schuetz-Schmuck <MarkoSchuetz@web.de> writes:
> I know of afew and that it has a move mode, but haven't used it
> before.
I use afew in a very similar setup. In my case the mail is only kept
locally in a maildir folder. Here is the relevant part of my afew
configuration.
[MailMover]
folders = /work/ /o2switch/ /zaclys/
rename = True
/work/ = 'date:.."1000days" AND NOT tag:deleted':local/.archive
/o2switch/ = 'date:.."1000days" AND NOT tag:deleted AND NOT folder:o2switch/DeltaChat':local/.archive
/zaclys/ = 'date:.."1000days" AND NOT tag:deleted AND NOT folder:zaclys/DeltaChat':local/.archive
The idea is that mail that is not tagged deleted and that is older than
1000 days should be moved to my local archive, unless the mail is from a
DeltaChat conversation.
I run this once a day with the command
afew --move-mails -vv
I then run `mbsync -a' to send the changes to the server.
Hope this helps,
Alan