Hi, On Fri Mar 13, 2009 at 19:01:26 -0400, Timo Sirainen wrote:
* Added :MAILBOXDIR= to mail_location to specify the root dir for mailboxes. dbox users should migrate to ":MAILBOXDIR=mailboxes", because that's going to be the default in v1.2+.
I am using the 'imap' binary directly via ssh which made it stat paths like /home/adam/Mail/(null)foo . The following fixes it for me: diff -ur dovecot-1.1.12/src/lib-storage/index/mbox/mbox-storage.c dovecot-1.1.12-a/src/lib-storage/index/mbox/mbox-storage.c --- dovecot-1.1.12/src/lib-storage/index/mbox/mbox-storage.c 2009-03-12 22:31:04.000000000 +0100 +++ dovecot-1.1.12-a/src/lib-storage/index/mbox/mbox-storage.c 2009-03-14 12:04:25.000000000 +0100 @@ -291,6 +291,7 @@ memset(list_set, 0, sizeof(*list_set)); list_set->subscription_fname = MBOX_SUBSCRIPTION_FILE_NAME; list_set->maildir_name = ""; + list_set->mailbox_dir_name = ""; autodetect = data == NULL || *data == '\0'; if (autodetect) { diff -ur dovecot-1.1.12/src/lib-storage/mailbox-list.c dovecot-1.1.12-a/src/lib-storage/mailbox-list.c --- dovecot-1.1.12/src/lib-storage/mailbox-list.c 2009-03-12 22:39:34.000000000 +0100 +++ dovecot-1.1.12-a/src/lib-storage/mailbox-list.c 2009-03-14 12:05:45.000000000 +0100 @@ -162,9 +162,7 @@ if (set->index_dir != NULL && strcmp(set->index_dir, "MEMORY") == 0) set->index_dir = ""; - if (set->mailbox_dir_name == NULL) - set->mailbox_dir_name = ""; - else if (set->mailbox_dir_name[strlen(set->mailbox_dir_name)-1] != '/') { + if (set->mailbox_dir_name[strlen(set->mailbox_dir_name)-1] != '/') { set->mailbox_dir_name = t_strconcat(set->mailbox_dir_name, "/", NULL); } Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/