Skip to content

Commit

Permalink
conversations: deleted mailboxes don't have a conversations DB
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Feb 11, 2024
1 parent 944c911 commit 9087f86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imap/conversations.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ static char *conversations_path(mbname_t *mbname)
* it's hard-coded as the user */
if (!mbname_userid(mbname))
return NULL;
// deleted mailboxes don't have a conversations database
if (mbname_isdeleted(mbname))
return NULL;
if (convdir)
return strconcat(convdir, "/", mbname_userid(mbname), ".", suff, (char *)NULL);
return mboxname_conf_getpath(mbname, suff);
Expand Down

0 comments on commit 9087f86

Please sign in to comment.