[Dovecot] convert_mail ?
I can't find much documentation on the convert_mail plugin. For example, on the wiki plugins page, clicking on convert goes to http://wiki.dovecot.org/InterWiki which is not relevant.
Can I use convert_mail to migrate from UW IMAP 2002 mbox format where some mail is in ~/ and the inboxes are in /var/spool/mail? Will it know which files are mbox folders, so it doesn't try to convert other files in the home directories? When are the e-mails converted? Are the old files deleted? Is this configuration snippet valid?
default_mail_env = maildir:~/Maildir convert_mail = mbox:~/:INBOX=/var/mail/%u
If I can do that, it seems like an easy change.
Andrew
On Thu, 2006-11-30 at 17:27 -0700, Andrew Z wrote:
I can't find much documentation on the convert_mail plugin. For example, on the wiki plugins page, clicking on convert goes to http://wiki.dovecot.org/InterWiki which is not relevant.
Can I use convert_mail to migrate from UW IMAP 2002 mbox format where some mail is in ~/ and the inboxes are in /var/spool/mail? Will it know which files are mbox folders, so it doesn't try to convert other files in the home directories?
Looks like it gives an error and stops the conversion completely. But I added convert_skip_broken_mailboxes setting now to convert plugin on CVS. Latest nightly snapshot also has it.
I wrote the wiki page with answers to your questions: http://wiki.dovecot.org/Plugins/Convert
Is this configuration snippet valid?
default_mail_env = maildir:~/Maildir convert_mail = mbox:~/:INBOX=/var/mail/%u
Yep.
Timo Sirainen wrote:
On Thu, 2006-11-30 at 17:27 -0700, Andrew Z wrote:
I can't find much documentation on the convert_mail plugin. For example, on the wiki plugins page, clicking on convert goes to http://wiki.dovecot.org/InterWiki which is not relevant.
Can I use convert_mail to migrate from UW IMAP 2002 mbox format where some mail is in ~/ and the inboxes are in /var/spool/mail? Will it know which files are mbox folders, so it doesn't try to convert other files in the home directories?
Looks like it gives an error and stops the conversion completely. But I added convert_skip_broken_mailboxes setting now to convert plugin on CVS. Latest nightly snapshot also has it.
I wrote the wiki page with answers to your questions: http://wiki.dovecot.org/Plugins/Convert
Is this configuration snippet valid?
default_mail_env = maildir:~/Maildir convert_mail = mbox:~/:INBOX=/var/mail/%u
Yep.
Thank you very much. After the conversion, are the files in /~ renamed or moved? Is the CVS stable, or should I wait for 1.0 RC 16?
Andrew
On 4.12.2006, at 18.46, Andrew Z wrote:
Is this configuration snippet valid? default_mail_env = maildir:~/Maildir convert_mail = mbox:~/:INBOX=/var/mail/%u
Yep.
Thank you very much. After the conversion, are the files in /~
renamed or moved?
I didn't really think of that.. Currently it would rename your whole
home directory to to <user>-converted, which I guess you wouldn't
really want.
Hmm. I'm not really sure how it even should work. Maybe instead of
renaming it could create a .dovecot-converted-file..?
Is the CVS stable, or should I wait for 1.0 RC 16?
Should be stable if you use branch_1_0 branch and not HEAD.
On 4.12.2006, at 18.46, Andrew Z wrote:
Is this configuration snippet valid? default_mail_env = maildir:~/Maildir convert_mail = mbox:~/:INBOX=/var/mail/%u Yep. Thank you very much. After the conversion, are the files in /~ renamed or moved? I didn't really think of that.. Currently it would rename your whole home directory to to <user>-converted, which I guess you wouldn't really want. That would be very undesirable, and if it dropped privileges at that
Timo Sirainen wrote: point, the operation would fail. (In our case, we use NFS root_squash, so it should fail either way.)
Hmm. I'm not really sure how it even should work. Maybe instead of renaming it could create a .dovecot-converted-file..? I prefer preserving the mbox file names but moving the files to a new, hidden directory like ~/.converted-mbox . Preserving the file names is consistent with the other behavior, and it's easier to reverse the conversion.
Is the CVS stable, or should I wait for 1.0 RC 16? Should be stable if you use branch_1_0 branch and not HEAD. I'm guessing the new convert feature is in both, but if it tries to rename ~, then I'll wait. :)
Andrew
participants (3)
-
Andrew Z
-
Andrew Ziem
-
Timo Sirainen