Adam McDougall
2007-Oct-21 12:56 UTC
[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
Timo Sirainen
2007-Oct-21 13:51 UTC
[Dovecot] dovecot? putting wrong seperator in subscriptions file
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071021/639277d1/attachment-0002.bin>
Adam McDougall
2007-Oct-21 16:24 UTC
[Dovecot] dovecot? putting wrong seperator in subscriptions file
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.
Possibly Parallel Threads
- Users w/o acl access appear to be subscribed to public folders (1.1b8)
- dsync convert Maildir -> mdbox, separators in subscriptions file
- two small low importance issues in 1.1b
- unexpected LSUB / LIST (SUBSCRIBED) output Re: Panic: file mailbox-list-subscriptions.c: line 66 (mailbox_list_subscription_fill_one): assertion failed: (ns!= NULL && (ns->flags & NAMESPACE_FLAG_AUTOCREATED) != 0)
- IMAP subscriptions - how, for what and why?