[Dovecot] trash folder (again)

Holger Hegmanns hlx at h3c.de
Thu Jul 8 16:54:42 EEST 2010


Hi,

I read very intently all the issues related to imap trash folders, but either 
I didn't unerstand them or my problem is slightly different.

I plan to migrate from cyrus to dovecot. I've executed the perl script 
cyrus2dovecot successfully with the substitution flag "-E 's/^\./.INBOX./'" 
cause I want to have all folders as subfolders of the INBOX. The vmail dir 
looks like this afterwards:

drwxr-xr-x 11 vmail vmail 4096 Jul  8 14:19 .
drwxr-xr-x  3 vmail vmail 4096 Jul  8 14:19 ..
drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Drafts
drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Sent
drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Templates
drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Trash
drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.blah
drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.blub
drwxr-xr-x  2 vmail vmail 4096 Jul  8 14:19 cur
-rw-r--r--  1 vmail vmail  119 Jul  8 14:19 dovecot-uidlist
drwxr-xr-x  2 vmail vmail 4096 Jul  8 14:19 new
-rw-r--r--  1 vmail vmail   80 Jul  8 14:19 subscriptions
drwxr-xr-x  2 vmail vmail 4096 Jul  8 14:19 tmp

After the first access with Thunderbird, regardless of the version (TB2x or 
TB3x) and regardless of using TB with an empty profile or a well filled up, the 
directory looks different:

drwxr-xr-x 12 vmail vmail  4096 Jul  8 14:21 .
drwxr-xr-x  3 vmail vmail  4096 Jul  8 14:19 ..
drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:19 .INBOX.Drafts
drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:19 .INBOX.Sent
drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:19 .INBOX.Templates
drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:19 .INBOX.Trash
drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:19 .INBOX.blah
drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:19 .INBOX.blub
drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:21 .Trash
drwxr-xr-x  2 vmail vmail  4096 Jul  8 14:19 cur
-rw-r--r--  1 vmail vmail   119 Jul  8 14:21 dovecot-uidlist
-rw-r--r--  1 vmail vmail 17408 Jul  8 14:21 dovecot.index.cache
-rw-r--r--  1 vmail vmail   448 Jul  8 14:21 dovecot.index.log
drwxr-xr-x  2 vmail vmail  4096 Jul  8 14:19 new
-rw-r--r--  1 vmail vmail    86 Jul  8 14:21 subscriptions
drwxr-xr-x  2 vmail vmail  4096 Jul  8 14:19 tmp

A Trash folder was added by TB, I guess. The related lines of the local TB 
imap logfile (beginning chars are cutted):

mydovedomain.lan:A:CreateNewLineFromSocket: * LIST (\HasChildren) "." "INBOX"
ReadNextLine [stream=4ecf8a10 nb=22 needmore=0]
mydovedomain.lan:A:CreateNewLineFromSocket: 5 OK List completed.
mydovedomain.lan:A:SendData: 6 list "" "Trash"
ReadNextLine [stream=4ecf8a10 nb=22 needmore=0]
mydovedomain.lan:A:CreateNewLineFromSocket: 6 OK List completed.
mydovedomain.lan:A:SendData: 7 create "Trash"
ReadNextLine [stream=4ecf8a10 nb=24 needmore=0]
mydovedomain.lan:A:CreateNewLineFromSocket: 7 OK Create completed.
mydovedomain.lan:A:SendData: 8 subscribe "Trash"
ReadNextLine [stream=4ecf8a10 nb=27 needmore=0]
mydovedomain.lan:A:CreateNewLineFromSocket: 8 OK Subscribe completed.
mydovedomain.lan:A:SendData: 9 list "" "Trash"
ReadNextLine [stream=4ecf8a10 nb=37 needmore=0]
mydovedomain.lan:A:CreateNewLineFromSocket: * LIST (\HasNoChildren) "." 
"Trash"

Maybe it's a namespace related problem, cause the advanced TB preference panel 
looks like that:

private namespace "" and the other both input fields are empty.

In opposite to cyrus. The preexisting Trash folder (I created all the standard 
folders with cyradm by hand) below the INBOX seems sufficient to TB, no further 
Trash can was created and here all input fields are filled up as followed:

private namespace "INBOX."
shared                     ""
other users              "user."
(only translated by me, it's a localized german version of TB)

I tried hard to understand the namespace wiki page of dovecot, but without 
success.

Finally my dovecot.conf, dovecot version is 1.2.11:

protocols = imap managesieve
protocol imap {
  listen = mydovedomain.lan:10143
}
protocol managesieve {
  listen = mydovedomain.lan:12000
}
disable_plaintext_auth = no
log_path = /var/log/imap/dovecot.log
ssl = no
ssl_cert_file = /etc/ssl/dovecot/server.pem
ssl_key_file = /etc/ssl/dovecot/server.key
mail_location = maildir:~/Maildir
mail_privileged_group = mail
mail_debug = yes
protocol imap {
}
protocol pop3 {
}
protocol managesieve {
}
protocol lda {
  postmaster_address = postmaster at mydovedomain.lan
  mail_plugins = cmusieve acl
}
auth_verbose = yes
auth default {
  mechanisms = plain cram-md5
  passdb passwd-file {
    args = /etc/dovecot/passwd
  }
  passdb pam {
  }
  userdb static {
    args = uid=vmail gid=vmail home=/var/spool/dovecot/vmail/%u
  }
  user = root
}
dict {
}
plugin {
  mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename 
flag_change append
}

Please don't punish me, if my problem is already solved.
And sorry for my poor English

Holgerr


More information about the dovecot mailing list