|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/root/usr/share/doc/dovecot-1.0.7/wiki/ |
Upload File : |
Mailbox format conversion plugin
================================
This plugin can be used to convert mails from one format to another when the
user logs in. The existing mails aren't deleted, only the directory is renamed.
For example:
---%<-------------------------------------------------------------------------
mail_location = maildir:~/Maildir
protocol imap {
mail_plugins = convert
}
protocol pop3 {
mail_plugins = convert
}
plugin {
convert_mail = mbox:~/mail:INBOX=/var/mail/%u
}
---%<-------------------------------------------------------------------------
This converts '/var/mail/user' INBOX to Maildir INBOX in '~/Maildir'. Also all
mailboxes in '~/mail/' are converted to Maildir mailboxes. Once everything is
finished,'~/mail' is renamed to '~/mail-converted' and at next login the
conversion isn't done, because the '~/mail' directory no longer exists.
UW-IMAP conversion
------------------
If your mailboxes exist in home directory among other files, you'll need to
use:
---%<-------------------------------------------------------------------------
plugin {
convert_mail = mbox:~/:INBOX=/var/mail/%u
convert_skip_broken_mailboxes=yes
}
---%<-------------------------------------------------------------------------
Otherwise the conversion stops at the first file which isn't an mbox.
(This file was created from the wiki on 2007-06-15 04:42)