[Dovecot] Autocreating INBOX only
I would like deliver not to automatically create subfolders for mails
addressed to user+some_strange_name@domain.com, but nevertheless
automatically create INBOX for new users. I'm not sure whether a new
option like -M or -m -m would be appropriate, i.e., whether anyone
needs the current -m behaviour.
It looks to me like one would need to change
mailbox_open_or_create_synced()
if (box != NULL || no_mailbox_autocreate)
return box;
to something like (assuming an enum mailbox_autocreate {_never,_inbox,_always}
if (box != NULL)
return box;
if (mailbox_autocreate == mailbox_autocreate_never || strcasecmp
(mailbox, "INBOX") != 0) return NULL;
On Mon, 2008-09-01 at 15:19 +0200, Edgar Fuß wrote:
I would like deliver not to automatically create subfolders for mails
addressed to user+some_strange_name@domain.com, but nevertheless
automatically create INBOX for new users. I'm not sure whether a new
option like -M or -m -m would be appropriate, i.e., whether anyone
needs the current -m behaviour.
If a namespace has inbox=yes, Dovecot always makes sure the INBOX exists so it's autocreated if necessary. Is this not working with you?
On Mon, 2008-09-01 at 16:50 +0200, Edgar Fuß wrote:
Is this not working with you? Ouch. I should have read the log more carefully. The problem was that for this particular test user, the mail directory didn't exist and of course deliver was unable to create cur in that non-existing directory.
Even then deliver should have tried to create the mail directory. It failed only if it didn't have permissions to create it.
participants (2)
-
Edgar Fuß
-
Timo Sirainen