27 Jul
2010
27 Jul
'10
11:02 p.m.
Hi,
I'm currently restructuring my mail archives and migrated from a decade and a half old procmail supported solution to sieve.
While doing so I often found that I'd like to filter a bunch of messages (with "bunch" in the area of 1-10K) with my shiny new sieve script. I found in the wiki a way to do that:
http://wiki.dovecot.org/HowTo/RefilterMail
And it works well, it picks the mails via IMAP and resubmits them to dovecot-lda. But unfortunately the IMAP flags including \Sent, \Flagged etc are lost in the process.
I started checking for other solutions beside getmail that might extract the imap flags as well, but I wouldn't know how to pass them to dovecot-lda.