[Dovecot] Virtual Folder configuration problem.
I'm attempting to create a virtual inbox that contains all unread
messages from the user's Maildir.
I created a conf file called 80-virtual.conf containing:
mail_plugins = $mail_plugins virtual
namespace { prefix = virtual/ separator = / location = virtual:~/Maildir/virtual }
And created the
/home/username/Maildir/virtual/unseen/dovecot-virtual file which contains:
# ~/Maildir/virtual/unseen/dovecot-virtual * unseen
However it doesn't work and the maillog file contains:
dovecot: imap(username): Error: user username: Initialization failed:
namespace configuration error: inbox=yes namespace missing
This is with dovecot 2.0.beta6 (3156315704ef)
Does anybody have any suggestions?
Thanks!
Terry
On Sa, 24 Sep 2011, Terry Carmen wrote:
I'm attempting to create a virtual inbox that contains all unread
messages from the user's Maildir.I created a conf file called 80-virtual.conf containing: [...] However it doesn't work and the maillog file contains:
dovecot: imap(username): Error: user username: Initialization failed:
namespace configuration error: inbox=yes namespace missing
Probably you forgot to follow this advise from 10-mail.conf:
# REMEMBER: If you add any namespaces, the default namespace must be added # explicitly, ie. mail_location does nothing unless you have a namespace # without a location setting. Default namespace is simply done by having a # namespace with empty prefix.
Lutz
On 2011-09-24 9:30 PM, Terry Carmen terry@cnysupport.com wrote:
This is with dovecot 2.0.beta6 (3156315704ef)
Does anybody have any suggestions?
Upgrade - which probably won't fix your problem, but because the version you're using is so old should be considered a requirement before asking for further help.
--
Best regards,
Charles
----- Message from Charles Marcus CMarcus@Media-Brokers.com --------- Date: Mon, 26 Sep 2011 09:38:44 -0400 From: Charles Marcus CMarcus@Media-Brokers.com Reply-To: Dovecot Mailing List dovecot@dovecot.org Subject: Re: [Dovecot] Virtual Folder configuration problem. To: dovecot@dovecot.org
On 2011-09-24 9:30 PM, Terry Carmen terry@cnysupport.com wrote:
This is with dovecot 2.0.beta6 (3156315704ef)
Does anybody have any suggestions?
Upgrade - which probably won't fix your problem, but because the
version you're using is so old should be considered a requirement
before asking for further help.
It's the version that came with Centos 6. I was keeping it to maintain
compatibility with the Cendos distribution.
In any case, I'll probably try an upgrade later today, because even
after adding the default namespace config, the virtual folders still
don't work and it suddenly began complaining about not supporting TLS.
Terry
Does anybody have any suggestions?
Upgrade - which probably won't fix your problem, but because the
version you're using is so old should be considered a requirement
before asking for further help.
OK, I upgraded to the current version of Dovecot, which didn't
actually fix anything.
However I spent pretty much an entire day experimenting and reading
docs from all over the net, I came up with something that more-or-less
works, although it still behaves a touch strangely.
I added the following code:
dovecot.conf: mail_plugins = $mail_plugins virtual namespace { list = yes type = private prefix = virtual-folders. separator = . location = virtual:~/Maildir/virtual-folders }
10-mail.conf: namespace { separator = . prefix = inbox = yes }
10-lda.conf mail_plugins = $mail_plugins sieve virtual
20-imap.conf mail_plugins = $mail_plugins virtual
The directory virtual-folders appears inside the ~/Maildir folder and
contains the file dovecot-virtual, which contains:
# ~/Maildir/dovecot-virtual INBOX INBOX.Folder1 INBOX.Folder1.* INBOX.Folder2 INBOX.Folder2.* unseen
This actually works, although the subscription to the virtual folder
vanishes with each logout, and need to be re-subscribed with each login.
Also, the virtual folder appears as "virtual-folder" in the client, at
the same level as INBOX. I'd like to make move it under INBOX and
place other virtual folders inside it, but haven't been able to find
the right configuration.
I would appreciate any hints on where to look to make the subscription
permanent and to make a folder structure containing virtual-folder
sub-nodes for various search criteria.
Any assistance is appreciated.
Thanks!
Terry
participants (3)
-
Charles Marcus
-
Lutz Preßler
-
Terry Carmen