Skip to content

Commit 898937d

Browse files
committed
conversations: deleted mailboxes don't have a conversations DB
1 parent 07c9bf9 commit 898937d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

imap/conversations.c

+3
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ static char *conversations_path(mbname_t *mbname)
142142
* it's hard-coded as the user */
143143
if (!mbname_userid(mbname))
144144
return NULL;
145+
// deleted mailboxes don't have a conversations database
146+
if (mbname_isdeleted(mbname))
147+
return NULL;
145148
if (convdir)
146149
return strconcat(convdir, "/", mbname_userid(mbname), ".", suff, (char *)NULL);
147150
return mboxname_conf_getpath(mbname, suff);

0 commit comments

Comments
 (0)