I have inherited a 10+ GB mailbox which dsync converted to maildir very nicely. But 15GB in tens of thousands of messages is too much in one INBOX when used in webmail. I guess it's best to divide the messages into subfolders for date. Is there a server-side way to safely move messages into new subfolders so that Dovecot indexes and UIDs won't break? If I write a shell script to move maildir files based on date of the files, I think Dovecot would not like this? Also, is there any way to automatically create delivery or archive folders by date eg., on the 1st of each month? And deliver mails to the subfolder for the current month? I know I can create Sieve rules for such by hand, but prefer if there is a plugin or something to do this automatically.
On 25.10.2016 09:43, mrobti at insiberia.net wrote:> I have inherited a 10+ GB mailbox which dsync converted to maildir > very nicely. But 15GB in tens of thousands of messages is too much in > one INBOX when used in webmail. > > I guess it's best to divide the messages into subfolders for date. > > Is there a server-side way to safely move messages into new subfolders > so that Dovecot indexes and UIDs won't break? If I write a shell > script to move maildir files based on date of the files, I think > Dovecot would not like this? > > Also, is there any way to automatically create delivery or archive > folders by date eg., on the 1st of each month? And deliver mails to > the subfolder for the current month? I know I can create Sieve rules > for such by hand, but prefer if there is a plugin or something to do > this automatically.Hi! doveadm move is probably your friend here, see man doveadm-search-query for details on what you can search for. Aki
On 2016-10-25 06:51, Aki Tuomi wrote:> On 25.10.2016 09:43, mrobti at insiberia.net wrote: >> I have inherited a 10+ GB mailbox which dsync converted to maildir >> very nicely. But 15GB in tens of thousands of messages is too much in >> one INBOX when used in webmail. >> >> I guess it's best to divide the messages into subfolders for date. >> >> Is there a server-side way to safely move messages into new subfolders >> so that Dovecot indexes and UIDs won't break? If I write a shell >> script to move maildir files based on date of the files, I think >> Dovecot would not like this? >> >> Also, is there any way to automatically create delivery or archive >> folders by date eg., on the 1st of each month? And deliver mails to >> the subfolder for the current month? I know I can create Sieve rules >> for such by hand, but prefer if there is a plugin or something to do >> this automatically. > > Hi! > > doveadm move is probably your friend here, see man doveadm-search-query > for details on what you can search for.Thank you! I think I can script a few years of this: doveadm mailbox create -u biguser -s 'May 2012' doveadm move -u biguser 'May 2012' mailbox INBOX BEFORE 2012-06-01 SINCE 2012-05-01 Is there any plugin that can break up mailbox delivery automatically? I guess I can run the commands above on first of each month if that's the best way.
Seemingly Similar Threads
- Break up massive INBOX?
- Break up massive INBOX?
- Auto create & subscribe folder from Userdb [Was: Users with extra mailbox: namespace/mailbox in userdb lookup?]
- Auto create & subscribe folder from Userdb [Was: Users with extra mailbox: namespace/mailbox in userdb lookup?]
- Auto create & subscribe folder from Userdb [Was: Users with extra mailbox: namespace/mailbox in userdb lookup?]