[Dovecot] dovecot? putting wrong seperator in subscriptions file
My config has folders show up in the root namespace as well as hidden ones like mail/ for compat. In thunderbird when I set the namespace prefix to mail/, I effectively cannot subscribe to folders. You can pull up the folder list, select some folders to subscribe to, hit okay, and nothing changes in thunderbird:
3 subscribe "mail/Spam" 3 OK Subscribe completed. 4 lsub "" "mail/*" 4 OK Lsub completed.
What gets put in my subscriptions file: mail.Spam
If I manually change my subscriptions file to mail/Spam, it works as expected.
# dovecot -n # 1.1.beta3: /usr/local/etc/dovecot.conf ssl_cert_file: /usr/local/etc/apache2/ssl/cert.pem ssl_key_file: /usr/local/etc/apache2/ssl/cert.pem disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login verbose_proctitle: yes first_valid_uid: 1000 first_valid_gid: 0 mail_location: maildir:%h/Maildir:CONTROL=%h/Maildir/dovecot/private/control:INDEX=%h/Maildir/dovecot/private/indexes mail_debug: yes mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes mail_plugins: mail_log mail_log_max_lines_per_sec: 0 imap_client_workarounds: delay-newmail netscape-eoh tb-extra-mailbox-sep imap_logout_format: bbytes=%i/%o username=%u namespace: type: private separator: / prefix: mail/ location: maildir:%h/Maildir:CONTROL=%h/Maildir/dovecot/private/control:INDEX=%h/Maildir/dovecot/private/indexes hidden: yes namespace: type: private separator: / inbox: yes list: yes auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 384 user: postfix group: postfix plugin: acl: vfile:/usr/local/etc/dovecot-acls
On Sun, 2007-10-21 at 08:56 -0400, Adam McDougall wrote:
My config has folders show up in the root namespace as well as hidden ones like mail/ for compat. In thunderbird when I set the namespace prefix to mail/, I effectively cannot subscribe to folders. You can pull up the folder list, select some folders to subscribe to, hit okay, and nothing changes in thunderbird:
3 subscribe "mail/Spam" 3 OK Subscribe completed. 4 lsub "" "mail/*" 4 OK Lsub completed.
What gets put in my subscriptions file: mail.Spam
If I manually change my subscriptions file to mail/Spam, it works as expected.
On Sun, Oct 21, 2007 at 04:51:40PM +0300, Timo Sirainen wrote:
On Sun, 2007-10-21 at 08:56 -0400, Adam McDougall wrote:
My config has folders show up in the root namespace as well as hidden ones like mail/ for compat. In thunderbird when I set the namespace prefix to mail/, I effectively cannot subscribe to folders. You can pull up the folder list, select some folders to subscribe to, hit okay, and nothing changes in thunderbird:
3 subscribe "mail/Spam" 3 OK Subscribe completed. 4 lsub "" "mail/*" 4 OK Lsub completed.
What gets put in my subscriptions file: mail.Spam
If I manually change my subscriptions file to mail/Spam, it works as expected.
http://hg.dovecot.org/dovecot/rev/2bd0aaeb35f3
Thanks. This is functioning now, but it is different than 1.0 since it stores the prefix inside the subscriptions file (mail.Spam) instead of just Spam. In short, I wish it would use the dovecot 1.0 behavior of getting the prefix from the namespace config and not the subscription file. Explanation below.
While this behavior in 1.1 is functional, it causes a small problem for me because I was intending on having 3 namespaces (2 hidden, mail/ and Mail/) share the same CONTROL directory, and this makes the subscriptions file specific to only one namespace. Thus when I convert my user's mail into dovecot maildir and prepopulate their subscriptions file with the mailbox folders I migrate, I cannot predict which mail folder prefix their client may be set to out of the 3 choices and then the prepopulated subscription file may be useless.
I could work around this by having a seperate CONTROL for each of the 3 namespaces that point to the same folders, and modify my migration script to make 3 separate but appropriate subscription files (or other ugly methods), but then if they subscribe/unsubscribe various folders and then change their client folder prefix (or switch between another client such as webmail), their subscription files wont be in sync.
On Sun, Oct 21, 2007 at 12:24:15PM -0400, Adam McDougall wrote:
On Sun, Oct 21, 2007 at 04:51:40PM +0300, Timo Sirainen wrote:
On Sun, 2007-10-21 at 08:56 -0400, Adam McDougall wrote:
> My config has folders show up in the root namespace as well as
> hidden ones like mail/ for compat. In thunderbird when I set the
> namespace prefix to mail/, I effectively cannot subscribe to folders.
> You can pull up the folder list, select some folders to subscribe to,
> hit okay, and nothing changes in thunderbird:
>
> 3 subscribe "mail/Spam"
> 3 OK Subscribe completed.
> 4 lsub "" "mail/*"
> 4 OK Lsub completed.
>
> What gets put in my subscriptions file:
> mail.Spam
>
> If I manually change my subscriptions file to mail/Spam, it works
> as expected.
http://hg.dovecot.org/dovecot/rev/2bd0aaeb35f3
Thanks. This is functioning now, but it is different than 1.0 since it stores the prefix inside the subscriptions file (mail.Spam) instead of just Spam. In short, I wish it would use the dovecot 1.0 behavior of getting the prefix from the namespace config and not the subscription file. Explanation below.
While this behavior in 1.1 is functional, it causes a small problem for me because I was intending on having 3 namespaces (2 hidden, mail/ and Mail/) share the same CONTROL directory, and this makes the subscriptions file specific to only one namespace. Thus when I convert my user's mail into dovecot maildir and prepopulate their subscriptions file with the mailbox folders I migrate, I cannot predict which mail folder prefix their client may be set to out of the 3 choices and then the prepopulated subscription file may be useless.
I could work around this by having a seperate CONTROL for each of the 3 namespaces that point to the same folders, and modify my migration script to make 3 separate but appropriate subscription files (or other ugly methods), but then if they subscribe/unsubscribe various folders and then change their client folder prefix (or switch between another client such as webmail), their subscription files wont be in sync.
Additionally I think this would be a problem for anyone depending on subscriptions to keep working when using a mail folder prefix for a private namespace when upgrading from dovecot 1.0 to 1.1...
On Sun, 2007-10-21 at 12:24 -0400, Adam McDougall wrote:
Thanks. This is functioning now, but it is different than 1.0 since it stores the prefix inside the subscriptions file (mail.Spam) instead of just Spam. In short, I wish it would use the dovecot 1.0 behavior of getting the prefix from the namespace config and not the subscription file. Explanation below.
Hmm. There was a reason why I changed it this way. I guess it had something to do with using UW-IMAP's .mailboxlist file.
Well, I ended up adding a new subscriptions setting. The default is "yes" which makes it behave like v1.0. "no" will be useful for people converting from UW-IMAP and for shared/public namespaces.
participants (2)
-
Adam McDougall
-
Timo Sirainen