[Dovecot] namespaces and noselect

Kyle Wheeler kyle-dovecot at memoryhole.net
Thu Dec 30 17:33:29 EET 2010


On Thursday, December 30 at 12:33 PM, quoth Timo Sirainen:
> On Sun, 2010-12-26 at 14:40 -0600, Kyle Wheeler wrote:
>> I am trying to use two namespaces to create an "archival" directory 
>> that is stored as mboxes (the rest of my tree is all stored as 
>> maildirs). However, when I add the second namespace, suddenly 
>> Dovecot starts emitting, in response to the LIST command, a second 
>> version of the INBOX that is marked as \NoSelect. Here are my 
>> namespac definitions... am I doing this wrong?
>
> That's definitely a bug if there are two INBOXes listed. But you 
> didn't say which Dovecot version does this.

Ahh, well, I wasn't sure if I was doing it right.

I'm using Dovecot 2.0.6. Here's the output of dovecot -n:

# 2.0.6: /service/dovecot-memoryhole.net//dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian squeeze/sid 
auth_default_realm = memoryhole.net
auth_mechanisms = plain login
base_dir = /var/run/dovecot/memoryhole
first_valid_gid = 64020
first_valid_uid = 64020
last_valid_gid = 64020
last_valid_uid = 64020
log_path = /dev/stderr
log_timestamp = 
login_greeting = ...you two suckers! Stop shirkin' and get workin'!
mail_gid = 64020
mail_location = maildir:%h/Maildir
mail_plugins = fts fts_squat zlib listescape
mail_uid = 64020
mbox_write_locks = fcntl
namespace {
   hidden = yes
   list = no
   location = mbox:~/Maildir/Archive:LAYOUT=fs:INDEX=~/Maildir/ArchiveIndexes/
   prefix = INBOX/Archive/
   separator = /
   type = private
}
namespace {
   hidden = no
   inbox = yes
   list = yes
   location = maildir:~/Maildir
   prefix =
   separator = /
   type = private
}
passdb {
   args = /var/lib/dovecot/dovecot-ldap.conf
   driver = ldap
}
plugin {
   fts = squat
   fts_squat = partial=4 full=4
   zlib_save = gz
   zlib_save_level = 6
}
protocols = imap
service auth {
   user = vpopmail
}
service imap-login {
   inet_listener imap {
     address = imap.memoryhole.net
     port = 143
   }
   inet_listener imaps {
     address = imap.memoryhole.net
     port = 993
   }
   service_count = 0
   user = dovecot
}
service imap {
   executable = /usr/local/bin/relay-ctrl-allow-wrapper.sh /usr/local/libexec/dovecot/imap
   service_count = 0
}
service pop3-login {
   user = dovecot
}
ssl_cert = </etc/ssl/certs/imap.memoryhole.net.pem
ssl_key = </etc/ssl/private/imap.memoryhole.net.key
userdb {
   args = uid=64020 gid=64020 home=/var/lib/vpopmail/domains/%Ld/%Ln allow_all_users=yes
   driver = static
}
valid_chroot_dirs = /var/lib/vpopmail/domains
verbose_proctitle = yes
protocol imap {
   imap_client_workarounds = tb-extra-mailbox-sep delay-newmail
   imap_logout_format = writebytes=%o, readbytes=%i
   mail_plugins = fts fts_squat zlib imap_zlib listescape
}
protocol lda {
   auth_socket_path = /var/run/dovecot/localhost/auth-master
   hostname = memoryhole.net
   mail_plugins = fts fts_squat zlib listescape
   postmaster_address = postmaster at memoryhole.net
}

Here is an example IMAP conversation:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] ...you two suckers! Stop shirkin' and get workin'!
1 LOGIN kyle ________
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS COMPRESS=DEFLATE] Logged in
2 LIST "" "INBOX"
* LIST (\HasChildren) "/" "INBOX"
* LIST (\Noselect \HasChildren) "/" "INBOX"
2 OK List completed.
3 LOGOUT
* BYE Logging out
3 OK Logout completed.

Just out of curiosity... why is IDLE listed twice in the second 
CAPABILITY response?

~Kyle
-- 
A woman has the last word in any argument. Anything a man says after 
that is the beginning of a new argument.
                                                             -- Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 842 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20101230/73e844ba/attachment.bin 


More information about the dovecot mailing list