My users currently have mail delivered to mulitple MailDir locations via procmail. ~/mail/inbox/ ~/mail/graph/ ~/mail/spam/ I would like all these mailboxes to be exported via dovecot IMAP and appear as folders. However, I can't anything beyond the INBOX working. My approach is via 'namespaces'. My config file is changed thusly: $ sudo dovecot -n # 1.0.15: /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login mail_privileged_group: mail mail_location: maildir:~/mail/inbox namespace: type: private inbox: yes namespace: type: private prefix: graph location: maildir:~/mail/graph namespace: type: private prefix: spam location: maildir:~/mail/spam auth default: passdb: driver: pam userdb: driver: passwd I try connecting with mutt and I can see the mails in 'inbox' just fine. I can also see (in the mutt browser) 'graph' and 'spam' just fine too: y:Exit c:Chdir m:Mask ?:Help 1 IMAP INBOX 2 IMAP graph. 3 IMAP spam. However, selecting 'graph' I see: y:Exit c:Chdir m:Mask ?:Help 1 IMAP ../ ...I would have expected it to open the 'graph' MailDir mailbox and display the mail. I try connecting directly using 'mutt -f imaps://user at computer/graph' and I see 'Invalid mailbox name'. telnet-ing in: $ nc localhost 143 * OK Dovecot ready. a1 login user password a1 OK Logged in. c1 list "" * * LIST (\HasNoChildren) "." "INBOX" * LIST (\Noselect \HasChildren) "." "graph" * LIST (\Noselect \HasChildren) "." "spam" c1 OK List completed. a100 logout * BYE Logging out a100 OK Logout completed. The logs only show: Oct 13 10:44:44 machine dovecot: imap-login: Login: user=<user>, method=PLAIN, rip=127.0.1.1, lip=127.0.1.1, TLS Oct 13 10:44:46 machine dovecot: IMAP(user): Disconnected: Logged out Any ideas where I am going wrong? Outlook Express also lists the 'graph' and 'spam' folder but won't show their contents. WS
* spam at wilysloth.com <spam at wilysloth.com>:> My users currently have mail delivered to mulitple MailDir locations via > procmail. > > ~/mail/inbox/ > ~/mail/graph/ > ~/mail/spam/Think like this: ~/mail/inbox/ ~/mail/inbox/graph/ ~/mail/inbox/spam/> I would like all these mailboxes to be exported via dovecot IMAP and > appear as folders. However, I can't anything beyond the INBOX working.graph/ and spam/ will show up as subfolders of the users mailbox. p at rick> My approach is via 'namespaces'. > > My config file is changed thusly: > $ sudo dovecot -n > # 1.0.15: /etc/dovecot/dovecot.conf > log_timestamp: %Y-%m-%d %H:%M:%S > login_dir: /var/run/dovecot/login > login_executable: /usr/lib/dovecot/imap-login > mail_privileged_group: mail > mail_location: maildir:~/mail/inbox > namespace: > type: private > inbox: yes > namespace: > type: private > prefix: graph > location: maildir:~/mail/graph > namespace: > type: private > prefix: spam > location: maildir:~/mail/spam > auth default: > passdb: > driver: pam > userdb: > driver: passwd > > I try connecting with mutt and I can see the mails in 'inbox' just fine. > I can also see (in the mutt browser) 'graph' and 'spam' just fine too: > > y:Exit c:Chdir m:Mask ?:Help > 1 IMAP INBOX > 2 IMAP graph. > 3 IMAP spam. > > However, selecting 'graph' I see: > > y:Exit c:Chdir m:Mask ?:Help > 1 IMAP ../ > > > ...I would have expected it to open the 'graph' MailDir mailbox and > display the mail. > > I try connecting directly using 'mutt -f imaps://user at computer/graph' > and I see 'Invalid mailbox name'. > > telnet-ing in: > $ nc localhost 143 > * OK Dovecot ready. > a1 login user password > a1 OK Logged in. > c1 list "" * > * LIST (\HasNoChildren) "." "INBOX" > * LIST (\Noselect \HasChildren) "." "graph" > * LIST (\Noselect \HasChildren) "." "spam" > c1 OK List completed. > a100 logout > * BYE Logging out > a100 OK Logout completed. > > The logs only show: > Oct 13 10:44:44 machine dovecot: imap-login: Login: user=<user>, > method=PLAIN, rip=127.0.1.1, lip=127.0.1.1, TLS > Oct 13 10:44:46 machine dovecot: IMAP(user): Disconnected: Logged out > > Any ideas where I am going wrong? Outlook Express also lists the 'graph' > and 'spam' folder but won't show their contents. > > WS > > >-- state of mind Agentur f?r Kommunikation, Design und Softwareentwicklung Patrick Koetter Tel: 089 45227227 Echinger Strasse 3 Fax: 089 45227226 85386 Eching Web: http://www.state-of-mind.de Amtsgericht M?nchen Partnerschaftsregister PR 563
On Mon, 2008-10-13 at 04:35 -0600, spam at wilysloth.com wrote:> My users currently have mail delivered to mulitple MailDir locations > via procmail. > > ~/mail/inbox/ > ~/mail/graph/ > ~/mail/spam/..> # 1.0.15: /etc/dovecot/dovecot.confDovecot v1.0 supports only Maildir++ directory layout: http://wiki.dovecot.org/MailboxFormat/Maildir#maildir++ Would be easiest if you could just rename the mailboxes, or maybe symlink them. With v1.1 you'd be able to do: mail_location = maildir:~/mail:LAYOUT=fs> namespace: > type: private > prefix: graph > location: maildir:~/mail/graph > namespace: > type: private > prefix: spam > location: maildir:~/mail/spamThese are pretty kludgy, but you could do: namespace { prefix = spam. location = maildir:~/mail/spam } And that would show up as spam.INBOX I think. Or maybe not. Namespaces weren't really meant for this kind of use. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081013/6df86c90/attachment-0002.bin>