[Dovecot] imap+unix users and pop3+virtual users

Benjamin R. Haskell dovecot at benizi.com
Thu Dec 20 20:28:52 EET 2007


On Thu, 20 Dec 2007, Timo Sirainen wrote:

> On Sun, 2007-12-16 at 21:47 -0500, Benjamin R. Haskell wrote:
>> [Reversing the top-posting]
>>
>> On Sun, 16 Dec 2007, Wendell Turner wrote:
>>
>>>> [...]
>>>>
>>>> The trailing '/' means mbox format, correct?
>>>
>>
>> No. The trailing '/' means maildir format. (The '/' makes the path look
>> like a directory.)
>
> Dovecot doesn't assume anything based on '/' suffix. In fact it always
> just strips it, so there's no difference whatsoever if it's there or
> not.

Not true.

Using either dovecot-1.1_beta11 or dovecot-1.0.0 (from hg).


Using mail_location = ~/test-mail/, it errors out with:
"
Ambiguous mail location setting, don't know what to do with it: 
/home/username/test-mail/ (try prefixing it with mbox: or maildir:)
"

if test-mail is: nonexistent, a file, or a directory without new,tmp,cur. 
But it succeeds when test-mail is a proper maildir.

Using mail_location = ~/test-mail, it also succeeds in the case that 
test-mail is a file.


>From the looks of the other error messages, this might be happenstance (or 
just unintentional). The '/' is doubled-up when mail_location = 
~/test-mail/.

E.g.

maildir autodetect: stat(/home/user/test-mail//cur) failed: Not a directory

vs.

maildir autodetect: stat(/home/user/test-mail/cur) failed: Not a directory


Best,
Ben


More information about the dovecot mailing list