On Tue, 2009-08-11 at 12:12 +0200, Max Dittrich wrote:
Hi,
I'm running dovecot 1.2.3 with "imap_client_workarounds = tb-extra-mailbox-sep" and noticed that after deleting a folder (moving to Trash and emptying it on exit) that folder in Trash still keeps subscribed. I think the reason for that behavior is that the call for mailbox_list_set_subscribed() in imap/cmd-subscribe.c (line 84) is fed with the original mailbox name and not the stripped version in verify_name. Assigning verify_name to mailbox in the workaround-conditional fixes this issue for me.
Well, I guess it was kind of intentional and this isn't necessarily always a problem. TB subscribes mailbox as "box/" and unsubscribes it as "box/". Dovecot internally also stores it as "box/" so all of that should be ok. Except if some other client subscribes to it, or perhaps TB doesn't always subscribe to it as "box/".
Anyway.. http://hg.dovecot.org/dovecot-1.2/rev/339be408f49a should help.