[Dovecot] Virtual mailboxes and subfolders
Hello again, I'd like to know if there is a way to have subfolders in virtual mailbox?
In my virtual namespaces, I have some virtual maiboxes named like this : Mailbox Mailbox.SubMailbox
(the separator is '.')
But when I try to access the submailbox, depending on my client, it either :
- Tells me the mailbox doesn't exists (Roundcube)
- Don't show me any error, but don't display any mail in the mailbox (Apple Mail.app)
So I'd like to know if this is because I can't make subfolders of virtual mailboxes, or if I'm doing something wrong.
Thanks.
François-Xavier Payet
dovecot -n :
# 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-bpo.5-amd64 x86_64 Debian 5.0.7 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps managesieve login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login mail_privileged_group: mail mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): virtual mail_plugins(imap): virtual mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve namespace: type: private separator: . location: virtual:/var/vmail/%d/%n/Maildir/virtual:INDEX=MEMORY inbox: yes list: yes subscriptions: yes namespace: type: private separator: . prefix: RealMail. location: maildir:/var/vmail/%d/%n/Maildir hidden: yes list: no subscriptions: yes lda: log_path: /var/vmail/dovecot-deliver.log auth_socket_path: /var/run/dovecot/auth-master postmaster_address: foux@da-foux-server.tfdn.org mail_plugins: sieve virtual auth default: mechanisms: plain login passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: passwd userdb: driver: static args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: sieve: /var/vmail/%d/%n/sieve sieve_dir: /var/vmail/%d/%n/.sieve
On Thu, 2010-12-02 at 10:51 +0100, François-Xavier Payet wrote:
Hello again, I'd like to know if there is a way to have subfolders in virtual mailbox?
In my virtual namespaces, I have some virtual maiboxes named like this : Mailbox Mailbox.SubMailbox
(the separator is '.')
So you have virtual/Mailbox/dovecot-virtual and virtual/Mailbox/SubMailbox/dovecot-virtual files?
But when I try to access the submailbox, depending on my client, it either :
- Tells me the mailbox doesn't exists (Roundcube)
- Don't show me any error, but don't display any mail in the mailbox (Apple Mail.app)
Try talking IMAP protocol directly:
a login user pass b select Mailbox.SubMailbox
What is the error message? If it's simply "Mailbox doesn't exist", does this then show it:
c list "" *
namespace: type: private separator: . location: virtual:/var/vmail/%d/%n/Maildir/virtual:INDEX=MEMORY inbox: yes list: yes subscriptions: yes
So you use virtual namespace as the only visible namespace? .. That's interesting.
Le 2 déc. 2010 à 18:55, Timo Sirainen a écrit :
On Thu, 2010-12-02 at 10:51 +0100, François-Xavier Payet wrote:
Hello again, I'd like to know if there is a way to have subfolders in virtual mailbox?
In my virtual namespaces, I have some virtual maiboxes named like this : Mailbox Mailbox.SubMailbox
(the separator is '.')
So you have virtual/Mailbox/dovecot-virtual and virtual/Mailbox/SubMailbox/dovecot-virtual files?
In fact, I had virtual/Mailbox/dovecot-virtual and virtual/Mailbox.SubMailbox/dovecot-virtual, I thought subfolder should be named with the separator. It is working with your hierarchy, thanks!
But when I try to access the submailbox, depending on my client, it either :
- Tells me the mailbox doesn't exists (Roundcube)
- Don't show me any error, but don't display any mail in the mailbox (Apple Mail.app)
Try talking IMAP protocol directly:
a login user pass b select Mailbox.SubMailbox
What is the error message? If it's simply "Mailbox doesn't exist", does this then show it:
c list "" *
namespace: type: private separator: . location: virtual:/var/vmail/%d/%n/Maildir/virtual:INDEX=MEMORY inbox: yes list: yes subscriptions: yes
So you use virtual namespace as the only visible namespace? .. That's interesting.
Yes, only my virtual namespace is visible and is copying messages to the real maildir. I do that so that I can, in each mailbox, see all complete mail threads, even for the mails not in this mailbox (typically, the mail sent by me)
participants (2)
-
François-Xavier Payet
-
Timo Sirainen