convert_mail = mbox:%h/mail
Convert plugin. If set, specifies the source storage path which is
converted to destination storage (mail_location) when the user logs
in. The existing mail directory is renamed to <dir>-converted.
I'm not entirely clear on what this does. If someone can clarify for
me, I'll update the Wiki.
I'm hoping it'll allow me to convert from mbox to Maildir-- otherwise
I'm looking at a weekend of downtime when that project comes due...
--
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / chandler at chapman.edu
Today's Excuse: high pressure system failure
On Tue, 2007-02-20 at 12:49 -0800, Jay Chandler wrote:> convert_mail = mbox:%h/mail > > Convert plugin. If set, specifies the source storage path which is > converted to destination storage (mail_location) when the user logs > in. The existing mail directory is renamed to <dir>-converted. > > I'm not entirely clear on what this does. If someone can clarify for > me, I'll update the Wiki.From what I remember from discussions here the idea is if you have (ok I peeked ahead and know you do) mbox folders in some older storage and maildir folders in some new storage then on the first login the old storage is read and converted to the new storage. The new storage is just the regular storage as given by mail_location, but obviously it needs to know what to convert as well. That's what convert_mail is, same syntax rules apply and you can convert from anything dovecot supports to anything else.> I'm hoping it'll allow me to convert from mbox to Maildir-- otherwise > I'm looking at a weekend of downtime when that project comes due...Yeah. That's the idea afaik. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070220/5076f3bb/attachment.bin>
Was about to try convert plugin (as opposed to mb2md.pl) and noticed,
that it doesn't convert subfolders.
I have following structure:
~/
| mail/
| Archive
| Help
| Sent
| Done/
| Cardiology
| Childrens
| Orkin
when I use convert-tool -
#convert-tool username /home/username mbox:/home/username/mail/
maildir:/home/username/Maildir/
Error: Mailbox conversion: Couldn't create mailbox Done/Cardiology
Error: Internal failure
If I try "on the fly" conversion (by putting convert_mail =
mbox:%h/mail
& convert_skip_broken_mailboxes=yes in dovecot.conf) I get this in the log -
Mar 6 12:23:33 enders2 dovecot: imap-login: Login: user=<username>,
method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
Mar 6 12:23:43 enders2 dovecot: IMAP(username): Mailbox conversion:
Couldn't create mailbox Done/Cardiology
Both methods convert Archive and Logs mailboxes fine.
Can anybody confirm?
P.S.
Linux enders2.tchlab.org 2.6.18-1.2200.fc5smp #1 SMP Sat Oct 14 17:15:35
EDT 2006 i686 i686 i386 GNU/Linux
dovecot-1.0.rc22 (I know this is not the latest version, but I didn't
see any changes to convert tool/plugin).
FiL