[Dovecot] Folder creation errors
Hi-
In a mbox environment:
1 login username password 1 OK Logged in. 2 create "slar" 2 NO Internal error [2003-06-11 15:44:56] 3 create "/slar" 3 NO Invalid mailbox name: /slar 4 create "Mail/slar" 4 OK Create completed. 5 create "./slar" 5 OK Create completed. 6 create "blar" 6 NO Internal error [2003-06-11 15:46:54] 7 logout
- BYE Logging out 7 OK Logout completed.
i.e. I get "internal error" if there is no path component in the folder name. Is this a problem? I would guess that "internal error" is always a problem :-)
mm
On Wed, 2003-06-11 at 22:50, Mark E. Mallett wrote:
i.e. I get "internal error" if there is no path component in the folder name. Is this a problem? I would guess that "internal error" is always a problem :-)
Yes .. And log file should show exactly what the error message is. I guess you've some weird settings. :)
On Sat, Jun 14, 2003 at 06:29:11PM +0300, Timo Sirainen wrote:
On Wed, 2003-06-11 at 22:50, Mark E. Mallett wrote:
i.e. I get "internal error" if there is no path component in the folder name. Is this a problem? I would guess that "internal error" is always a problem :-)
Yes .. And log file should show exactly what the error message is. I guess you've some weird settings. :)
Jun 14 12:21:09 iridium mem[118]: imap(dummydummy): mkdir_parents(/usr2/users/username/) failed: Is a directory
dovecot.conf has:
default_mail_env = mbox:~/:INBOX=%h/Mailbox
Probably not so much a weird setting as a weird artifact in BSD/OS:
mkdir x
mkdir x
returns EEXIST
mkdir x/
returns EISDIR
This is a long-standing thorn..
if I change mkdir-parents.c to check for EISDIR as well as EEXIST it fixes the problem. Can you add that to the official version?
Sorry for not checking that myself.
-mm-
On Sat, 2003-06-14 at 19:43, Mark E. Mallett wrote:
mkdir x returns EEXIST mkdir x/ returns EISDIR
This is a long-standing thorn..
if I change mkdir-parents.c to check for EISDIR as well as EEXIST it fixes the problem. Can you add that to the official version?
Actually it shouldn't be adding the extra '/' at the end, that seems to be fixed in CVS already. But I'll add the EISDIR check there anyway.
participants (2)
-
Mark E. Mallett
-
Timo Sirainen