[Dovecot] How to pull /var/mail mbox leftovers to Maildirs?

Frank Elsner frank at moltke28.B.Shuttle.DE
Fri Jul 4 09:30:27 EEST 2008


On Thu, 03 Jul 2008 23:15:20 -0400 Jeff Kowalczyk wrote:
> I just got my preferred postfix+dovecot(-1.1.1) configuration working on
> Ubuntu 8.04 server. Users and Maildirs migrated, etc.
> 
> I wasn't seeing inbound mail (in the email client) until I set:
> 
> sudo postconf -e 'home_mailbox = Maildir/'
> 
> Which I hadn't needed in the previous server's main.cf
> 
> I have a few hours worth of inbound mostly-spam in /var/mail/(username)
> during the time I was figuring this out.
> 
> What command line tools could I use to pull those message from the mboxes
> to the Maildirs?

The attached script might help. 
I used it during migration from UW-IMAP to dovecot.
It worked, although I'm not the author :-)


--Frank Elsner
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: perfect_maildir.pl
Url: http://dovecot.org/pipermail/dovecot/attachments/20080704/b570364c/attachment.pl 


More information about the dovecot mailing list