[Dovecot] namespaces
I'm trying to use the namespaces feature to set up dovecot to look just like our existing Courier IMAP server, and our previous Cyrus server. That is, all folders are subfolders of INBOX, and the hierachy separator is ".". I put this in the configuration file:
namespace private { separator = . prefix = INBOX. location = maildir:~/.maildir }
This makes subfolders work correctly, but it can't find the INBOX:
x1 select INBOX x1 NO Unknown namespace.
Also, I don't really want to specify the location here. I want to use the userdb settings (I'm using password-file). Is there a way to make it use my setting in the userdb/password-file?
Also, I'm not sure if it actually matters, but when selecting a folder, the number of RECENT messages is always the same as the number of messages which EXISTS:
x2 select INBOX.Tech
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
- 70 EXISTS
- 70 RECENT
- OK [UNSEEN 69] First unseen.
- OK [UIDVALIDITY 1057356619] UIDs valid
- OK [UIDNEXT 181] Predicted next UID x2 OK [READ-WRITE] Select completed.
I'm afraid some clients may use this information for something, and display incorrect information to the user.
Thanks!
--
- Brian
On Wed, 2003-09-03 at 01:45, Brian Marcotte wrote:
namespace private { separator = . prefix = INBOX. location = maildir:~/.maildir }
This makes subfolders work correctly, but it can't find the INBOX:
How about adding new "inbox = yes" setting to specify that it contains INBOX?
Also, I don't really want to specify the location here. I want to use the userdb settings (I'm using password-file). Is there a way to make it use my setting in the userdb/password-file?
Maybe if it wasn't set it could use the one from userdb.
Also, I'm not sure if it actually matters, but when selecting a folder, the number of RECENT messages is always the same as the number of messages which EXISTS:
Yes, I haven't yet fixed recent counters.
I'm afraid some clients may use this information for something, and display incorrect information to the user.
A few do.
How about adding new "inbox = yes" setting to specify that it contains INBOX?
That would work for me!
Maybe if [location in namespace section] wasn't set it could use the one from userdb.
Sounds like a good idea. It seems that the location option is most useful with the shared folders rather than the private ones.
Thanks!
--
- Brian
On Wed, 2003-09-03 at 20:10, Brian Marcotte wrote:
How about adding new "inbox = yes" setting to specify that it contains INBOX?
That would work for me!
Maybe if [location in namespace section] wasn't set it could use the one from userdb.
Sounds like a good idea. It seems that the location option is most useful with the shared folders rather than the private ones.
These are in CVS now.
I'm using dovecot-0.99.11-test9, and still have one problem with namespaces:
Maybe if [location in namespace section] wasn't set it could use the one from userdb.
These are in CVS now.
I tried this (no "location" setting):
namespace private { separator = . prefix = INBOX. inbox = yes }
I was able to log in using the userdb, but it didn't use the mailbox path I specified in the userdb. It instead was searching other places for the folders like ~/Maildir, ~/mail and many other things.
When I specified a "location", everything worked including finding the inbox, but that's not an option I have for my mail servers.
Despite the above issue, I've rolled out dovecot on some of our shell machines as an option (alternate port). This is a subset of our users, but also the ones most likely to benefit from Dovecot's indexes. The results have been very promising so far. Mutt and pine are now blazingly fast!
Thanks again!
--
- Brian
On Sat, 2003-09-20 at 02:12, Brian Marcotte wrote:
Maybe if [location in namespace section] wasn't set it could use the one from userdb.
These are in CVS now.
I was able to log in using the userdb, but it didn't use the mailbox path I specified in the userdb. It instead was searching other places for the folders like ~/Maildir, ~/mail and many other things.
Whops, here's a fix: diff -u -r1.37 mail-process.c --- mail-process.c 15 Sep 2003 14:02:07 -0000 1.37 +++ mail-process.c 20 Sep 2003 18:44:25 -0000 @@ -296,7 +296,7 @@ if (set->server->namespaces != NULL) { env_put_namespace(set->server->namespaces, - set->default_mail_env, user, home_dir); + mail, user, home_dir); } env_put(t_strconcat("MAIL=", mail, NULL));
participants (2)
-
Brian Marcotte
-
Timo Sirainen