[Dovecot] 2.1.rc5 Cannot delete folders from trash
Hi,
If I delete a folder "foo" in Thunderbird, it is moved to trash.
[root@dovecot1]tmp:exec # ll /mailspool1/xxxx.de/test1/mdbox/mailboxes/Trash/ insgesamt 16K drwx------ 4 vmail vmail 4,0K 31. Jan 22:16 . drwx------ 8 vmail vmail 4,0K 31. Jan 22:16 .. drwx------ 2 vmail vmail 4,0K 12. Feb 11:51 dbox-Mails drwx------ 3 vmail vmail 4,0K 31. Jan 22:16 foo [root@dovecot1]tmp:exec # [root@dovecot1]tmp:exec # [root@dovecot1]tmp:exec # ll /mailspool1/xxx.de/test1/mdbox/mailboxes/Trash/foo/ insgesamt 12K drwx------ 3 vmail vmail 4,0K 31. Jan 22:16 . drwx------ 4 vmail vmail 4,0K 31. Jan 22:16 .. drwx------ 2 vmail vmail 4,0K 12. Feb 11:52 dbox-Mails [root@dovecot1]tmp:exec # ll /mailspool1/xxxx.de/test1/mdbox/mailboxes/Trash/foo/dbox-Mails/ insgesamt 12K drwx------ 2 vmail vmail 4,0K 12. Feb 11:52 . drwx------ 3 vmail vmail 4,0K 31. Jan 22:16 .. -rw------- 1 vmail vmail 224 12. Feb 11:52 dovecot.index.log [root@dovecot1]tmp:exec #
If I delete foo from trash, thunderbird removed it from view, but if I restart thunderbird, the folder is still in trash.
No error in dovecot log, no error in thunderbird.
tcpdump:
156 45.101512 192.168.10.1 192.168.10.117 TCP 54094 > imap [ACK] Seq=353 Ack=1617 Win=10144 Len=0 TSV=2414467591 TSER=251091441
157 45.349600 192.168.10.1 192.168.10.117 IMAP Request: 16 list "" "Trash/*"
158 45.349717 192.168.10.117 192.168.10.1 IMAP Response: * LIST (\HasNoChildren) "/" "Trash/foo"
159 45.349756 192.168.10.1 192.168.10.117 TCP 54094 > imap [ACK] Seq=375 Ack=1727 Win=10144 Len=0 TSV=2414467653 TSER=251091503
160 45.395546 192.168.10.1 192.168.10.117 IMAP Request: 17 list "" "Trash/foo/*"
161 45.395624 192.168.10.117 192.168.10.1 IMAP Response: * LIST (\Noselect \HasNoChildren) "/" "Trash/foo/"
162 45.395662 192.168.10.1 192.168.10.117 TCP 54094 > imap [ACK] Seq=401 Ack=1802 Win=10144 Len=0 TSV=2414467665 TSER=251091515
163 45.439998 192.168.10.1 192.168.10.117 IMAP Request: 18 delete "Trash/foo/"
164 45.440067 192.168.10.117 192.168.10.1 IMAP Response: 18 NO [CANNOT] Invalid mailbox name
165 45.440104 192.168.10.1 192.168.10.117 TCP 54094 > imap [ACK] Seq=425 Ack=1839 Win=10144 Len=0 TSV=2414467676 TSER=251091526
166 45.493978 192.168.10.1 192.168.10.117 IMAP Request: 19 IDLE
with dovecot 1.2 and Maildir I can delete folders from trash.
Something wrong in my config? Thunderbird-Bug?
# 2.1.rc5 (b9e74767cd39): /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-xen-amd64 x86_64 Debian 6.0.4 auth_cache_size = 1 M auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login cram-md5 auth_verbose = yes auth_verbose_passwords = plain debug_log_path = /var/log/dovecot/dovecot-debug.log dict { expire = sqlite:/etc/dovecot/dovecot-dict-expire.conf.ext } disable_plaintext_auth = no hostname = mx4.xxxx.de info_log_path = /var/log/dovecot/dovecot-info.log log_path = /var/log/dovecot/dovecot.log mail_debug = yes mail_location = mdbox:~/mdbox mail_plugins = quota notify mail_log expire mail_privileged_group = mail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave namespace inbox { inbox = yes location = mailbox Archive/2011 { auto = subscribe } mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = separator = / type = private } passdb { args = scheme=PLAIN username_format=%u /etc/imap.userdb driver = passwd-file } plugin { expire = Trash expire2 = Trash/* expire3 = Spam expire_dict = proxy::expire quota = dict:User quota::file:/mailspool1/%d/%n/dovecot-quota quota_rule = *:storage=9000M:messages=1000000 sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } postmaster_address = postmaster@localhost protocols = " imap lmtp sieve pop3" ssl_ca =
On 02/12/2012 12:18 PM Mike Constabel wrote:
Hi,
If I delete a folder "foo" in Thunderbird, it is moved to trash. … If I delete foo from trash, thunderbird removed it from view, but if I restart thunderbird, the folder is still in trash.
No error in dovecot log, no error in thunderbird.
http://hg.dovecot.org/dovecot-2.1/file/b9e74767cd39/doc/example-config/conf....
Regards, Pascal
The trapper recommends today: deadbeef.1204312@localdomain.org
On 12.02.2012 12:18, Mike Constabel wrote:
If I delete foo from trash, thunderbird removed it from view, but if I restart thunderbird, the folder is still in trash.
No error in dovecot log, no error in thunderbird.
protocol imap { ... imap_client_workarounds = tb-extra-mailbox-sep }
Best regards,
Morten
Hi,
On Sun, 12 Feb 2012, Morten Stevens wrote:
On 12.02.2012 12:18, Mike Constabel wrote:
If I delete foo from trash, thunderbird removed it from view, but if I restart thunderbird, the folder is still in trash.
No error in dovecot log, no error in thunderbird.
protocol imap { ... imap_client_workarounds = tb-extra-mailbox-sep }
Ok, this seems to work, (I thought I tried it before.. but now it works. :)
Another Question to this Option:
# tb-extra-mailbox-sep: # With mbox storage a mailbox can contain either mails or submailboxes, # but not both. Thunderbird separates these two by forcing server to # accept '/' suffix in mailbox names in subscriptions list.
I thought this is not needed because I use mdbox. But mbox here means also mdbox and sdbox?
Also "With mbox storage a mailbox can contain either mails or submailboxes, but not both" is only correct for mbox? In mdbox this is possible.
This description should contain a litte bit more info for mbox/sdbox/mdbox?
Should I use all 3 workarounds if I don't know which clients are in use?
LAYOUT=fs and mdbox
Regards, Mike
On 12.2.2012, at 15.27, Mike Constabel wrote:
Another Question to this Option:
# tb-extra-mailbox-sep: # With mbox storage a mailbox can contain either mails or submailboxes, # but not both. Thunderbird separates these two by forcing server to # accept '/' suffix in mailbox names in subscriptions list.
I thought this is not needed because I use mdbox. But mbox here means also mdbox and sdbox?
Yes. I updated the comment: http://hg.dovecot.org/dovecot-2.1/rev/1a0ab868957b
Should I use all 3 workarounds if I don't know which clients are in use?
I don't know if delay-newmail is still relevant.
On 2/12/2012 9:00 AM, Timo Sirainen wrote:
On 12.2.2012, at 15.27, Mike Constabel wrote:
Another Question to this Option:
# tb-extra-mailbox-sep: # With mbox storage a mailbox can contain either mails or submailboxes, # but not both. Thunderbird separates these two by forcing server to # accept '/' suffix in mailbox names in subscriptions list.
I thought this is not needed because I use mdbox. But mbox here means also mdbox and sdbox? Yes. I updated the comment: http://hg.dovecot.org/dovecot-2.1/rev/1a0ab868957b
Should I use all 3 workarounds if I don't know which clients are in use? I don't know if delay-newmail is still relevant.
I'm fighting the same issue. With the current release (2.1rc6) no
errors are logged - but I'm having problems deleted folders from trash.
I've enabled tb-extra-mailbox-sep. Two folders that were previously in
Trash were successfully removed. I deleted four more - after several
Thunderbird restarts, compacts, refreshes, I have killed three of them -
there is still one folder that won't "die". Thunderbird reports the
mailbox doesn't exist, yet it continues to appear.
-- Daniel
On 2/13/2012 8:34 PM, Daniel L. Miller wrote:
I'm fighting the same issue. With the current release (2.1rc6) no errors are logged - but I'm having problems deleted folders from trash. I've enabled tb-extra-mailbox-sep. Two folders that were previously in Trash were successfully removed. I deleted four more - after several Thunderbird restarts, compacts, refreshes, I have killed three of them - there is still one folder that won't "die". Thunderbird reports the mailbox doesn't exist, yet it continues to appear.
Out of curiosity -- does the mailbox actually exist if you look on the Dovecot server? Secondly, is it listed in your subscription file?
On 2/14/2012 12:06 PM, Willie Gillespie wrote:
On 2/13/2012 8:34 PM, Daniel L. Miller wrote:
I'm fighting the same issue. With the current release (2.1rc6) no errors are logged - but I'm having problems deleted folders from trash. I've enabled tb-extra-mailbox-sep. Two folders that were previously in Trash were successfully removed. I deleted four more - after several Thunderbird restarts, compacts, refreshes, I have killed three of them - there is still one folder that won't "die". Thunderbird reports the mailbox doesn't exist, yet it continues to appear.
Out of curiosity -- does the mailbox actually exist if you look on the Dovecot server? Secondly, is it listed in your subscription file?
At one time - yes they were. After further playing, they do not exist in the on-disk folder structure, nor in the subscription file. But still show in the client - with errors.
Daniel
participants (6)
-
Daniel L. Miller
-
Mike Constabel
-
Morten Stevens
-
Pascal Volk
-
Timo Sirainen
-
Willie Gillespie