Skip to content

Commit

Permalink
user: find the inbox uniqueid a bit more aggressively
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Dec 20, 2024
1 parent 7d038e1 commit 9b8bf81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imap/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ EXPORTED const char *user_sieve_path(const char *inuser)
char *inboxname = mboxname_user_mbox(user, NULL);
mbentry_t *mbentry = NULL;

int r = mboxlist_lookup(inboxname, &mbentry, NULL);
int r = mboxlist_lookup_allow_all(inboxname, &mbentry, NULL);
free(inboxname);

if (r || (mbentry->mbtype & MBTYPE_LEGACY_DIRS)) {
Expand Down Expand Up @@ -633,7 +633,7 @@ EXPORTED char *user_hash_xapian(const char *userid, const char *root)
char *basedir = NULL;
int r;

r = mboxlist_lookup(inboxname, &mbentry, NULL);
r = mboxlist_lookup_allow_all(inboxname, &mbentry, NULL);
if (r) goto out;

mbname = mbname_from_intname(mbentry->name);
Expand Down

0 comments on commit 9b8bf81

Please sign in to comment.