Stupid question regarding Thunderbird and IMAP

Kevin D. Clark kclark at mtghouse.com
Thu Jul 27 13:25:01 EDT 2006


Fred writes:

> Thanks to both you and John. It is definitely using the mbox format. I'll 
> have to switch it to using Maildir, but wonder about converting the mbox to 
> Maildir in the many existing folders across many existing accounts.

The last time I needed to do this, I just whipped together a script
that used formail (part of the procmail package) to iterate over the
contents of each mailbox, and then I piped all of this into a special
procmail script that just outputted the mail in Maildir format.

There are other ways to do this [1], but this took me only a few minutes
to cobble together.  It took a while to run though...


[1]  Usually with each IMAP server there is a program that reads from
     stdin and writes to a folder(Maildir), but I'm not familiar
     enough with dovecot to know what that program is.  I happen to
     know procmail pretty well, so I tend to use what I know.


Regards,

--kevin

PS  Hint:

Here is a procmail rule that outputs to a Maildir, notice the trailing
slash...

:0
* ^TO.*silly@
$HOME/Maildir/.foldername/


-- 
GnuPG ID: B280F24E                     And the madness of the crowd
alumni.unh.edu!kdc                     Is an epileptic fit
                                       -- Tom Waits




More information about the gnhlug-discuss mailing list