Skip to content

Commit

Permalink
mboxname: user the user_isreplicaonly API
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Dec 20, 2023
1 parent c97e339 commit aa965b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions imap/mboxname.c
Original file line number Diff line number Diff line change
Expand Up @@ -3110,10 +3110,7 @@ static void mboxname_assert_canadd(mbname_t *mbname)
// add code for suppressing particular users by filename
const char *userid = mbname_userid(mbname);
if (!userid) return;
char *path = strconcat(config_dir, "/replicaonly/", userid, (char *)NULL);
struct stat sbuf;
assert(stat(path, &sbuf) == -1); // file must not exist
free(path);
assert(!user_isreplicaonly(userid));
}

EXPORTED modseq_t mboxname_nextmodseq(const char *mboxname, modseq_t last, int mbtype, int flags)
Expand Down

0 comments on commit aa965b2

Please sign in to comment.