# HG changeset patch # User Timo Sirainen # Date 1313354350 -10800 # Node ID 5aee3be80d104b69f886f3c496e31bc0708bb050 # Parent e3337e8acbaff015833453e49d6f55a136d7c16f lib-storage: Don't crash if INBOX is in a namespace with non-"" non-"INBOX/" prefix. diff -r e3337e8acbaf -r 5aee3be80d10 src/lib-storage/mail-storage.c --- a/src/lib-storage/mail-storage.c Sun Aug 14 21:35:39 2011 +0300 +++ b/src/lib-storage/mail-storage.c Sun Aug 14 23:39:10 2011 +0300 @@ -706,6 +706,11 @@ const char *p, *vname = box->vname; char list_sep, ns_sep; + if (box->inbox_user) { + /* this is INBOX - don't bother with further checks */ + return 0; + } + list_sep = mailbox_list_get_hierarchy_sep(box->list); ns_sep = mail_namespace_get_sep(ns);