[Dovecot] convert_mail plugin doesn't work

Giuseppe Giacomini gigiacom at unive.it
Thu Mar 15 13:23:19 EET 2007


Hi

I'm trying to use convert_mail plugin to convert wu-imap  mailbox to 
maildir.
I'm using dovecot rc 27 on Centos 4.4 linux.
I have user INBOX in /var/spool/mail/ and mbox file in mail  ~/mail
When I do the first login with a test user (test1), the plugin convert 
all the mbox under ~mail, but  doesn't do any conversion on the INBOX 
(/var/spool/mail/test1).

After conversion those are file in MailDir  where .testmail is converted 
from ~mail
all other  folder (cur,new) are  empty 

rwx------  2 test1 persone 4096 Mar 15 11:59 cur
drwx------  2 test1 persone 4096 Mar 15 11:59 new
drwx------  5 test1 persone 4096 Mar 15 11:59 .testmail
drwx------  2 test1 persone 4096 Mar 15 11:59 tmp

Why doesn't mail in /var/spool/mail/test1 be converted?
Thanks

This is my dovecot -n

protocols: imap imaps pop3 pop3s
ssl_cert_file: /usr/share/ssl/certs/dovecot.pem
ssl_key_file: /usr/share/ssl/private/dovecot.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot-login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
first_valid_uid: 200
mail_location: maildir:%h/MailDir:INDEX=%h/.index/%u:CONTROL=%h/.control/%u
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins: convert
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xv%08Xu
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  passdb:
    driver: pam
  userdb:
    driver: passwd
plugin:
  convert_mail: mbox:%h/mail:INBOX=/var/spool/mail/%u
  convert_skip_broken_mailboxes: yes



and this is maillog

dovecot: POP3(test1): Loading modules from directory: /usr/lib/dovecot/pop3
dovecot: POP3(test1): Module loaded: 
/usr/lib/dovecot/pop3/lib20_convert_plugin.so
dovecot: POP3(test1): Effective uid=10400, gid=502
dovecot: POP3(test1): mbox: 
data=/homeH2/t/test1/mail:INBOX=/var/spool/mail/test1
dovecot: POP3(test1): mbox: root=/homeH2/t/test1/mail, 
index=/homeH2/t/test1/mail, inbox=/var/spool/mail/test1
dovecot: POP3(test1): mbox: 
data=/homeH2/t/test1/mail:INBOX=/var/spool/mail/test1
dovecot: POP3(test1): mbox: root=/homeH2/t/test1/mail, 
index=/homeH2/t/test1/mail, inbox=/var/spool/mail/test1

dovecot: POP3(test1): maildir: 
data=/homeH2/t/test1/MailDir:INDEX=/homeH2/t/test1/.index/test1:CONTROL=/homeH2/t/test1/.control/
test1

dovecot: POP3(test1): maildir: root=/homeH2/t/test1/MailDir, 
index=/homeH2/t/test1/.index/test1, control=/homeH2/t/test1/.contro
l/test1, inbox=

dovecot: POP3(test1): maildir: 
data=/homeH2/t/test1/MailDir:INDEX=/homeH2/t/test1/.index/test1:CONTROL=/homeH2/t/test1/.control/
test1

dovecot: POP3(test1): maildir: root=/homeH2/t/test1/MailDir, 
index=/homeH2/t/test1/.index/test1, control=/homeH2/t/test1/.contro
l/test1, inbox=

dovecot: POP3(test1): Disconnected: Logged out top=0/0, retr=0/0, 
del=0/0, size=0



More information about the dovecot mailing list