How to move/reorganise existing e-mails to yearly subfolders
Victor Sudakov
vas at sibptus.ru
Wed Oct 21 06:12:29 EEST 2020
R. Diez wrote:
>
> I found some tools on the Internet to backup and export mails from IMAP to
> IMAP or maildir destinations. But I could not find a tool that just
> reorganises (moves) e-mails in such a manner inside an existing mailbox,
> maybe with a user-defined pattern for the destination folders.
You could try imapfilter (written in lua), it can move mails between
mailboxes and do other things.
A short example:
oldmails = account1["INBOX"]:is_older(365)
oldmails:move_messages(account1["Old"])
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <https://dovecot.org/pipermail/dovecot/attachments/20201021/2bde58a5/attachment.sig>
More information about the dovecot
mailing list