with 2.3.4 you could use the new FILTER command over IMAP to run sieve script.
Aki
On 13 February 2019 at 12:07 Marc Roos via dovecot < dovecot@dovecot.org> wrote:
I have made something for archiving that you can supply with an array ofmail folders and it wil move messages of a specific year to a folderARCHIVE/YEAR. If you only have 180GB I would not make subdivision inmonths. Just put everything in a year folder sent and and receivedcombined.Also use doveadm in your script, that wil work on any type of storageand you do not want to risk loosing email, because someone is not'coding' properly.
-----Original Message-----From: Gandalf Corvotempesta via dovecot [mailto: dovecot@dovecot.org]Sent: 13 February 2019 10:23To: Dovecot Mailing ListSubject: Archive maildir
Hi to allWe have a maildir with about 180GB of emails.We have to archive them to a structure like: .Archive.YYY./MM.folder
Are you aware of a script doing this ? I've found a perl script thatdoesn't spit in year and month and a very, very, very, very, very oldpython script that:1) doesn't manage base64 encoded subject properly2) doesn't work with python 3.x (that is able to manage base64 encodedsubject properly
Any idea ?
---
Aki Tuomi
Aki Tuomi