On Thu, Jul 17, 2025 at 08:31:00AM +0200, Peter P. wrote:
> 
> I am furthermore looking for a scriptable solution that will move all
> email older than X years from one local imap folder to another (which is
> then rsynced to a file server).
> 

I would look at mblaze. It is a collection of tools and contains the mpick 
command. From the example section of it's man page:
    You can pick mails to move them into another maildir.

          mv $(mlist ./INBOX | mpick -t 'from =~ "@github"') ./github/cur

    A more advanced mpick expression to pick mails in a certain time span, 
which are flagged as replied or not seen.

          mpick -t 'date >= "2016-01-01" && date < "2017-01-01" && (replied || 
!seen)'

Best regards,
Daniel


_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to