Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
mboxlist: don't try to update intermediaries if silent
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Jun 10, 2024
1 parent 241dd02 commit acec276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imap/mboxlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,7 @@ EXPORTED int mboxlist_createmailbox(const mbentry_t *mbentry,
}
r = mboxlist_update_entry_full(mboxname, newmbentry, NULL, silent);

if (!r && !(flags & MBOXLIST_CREATE_KEEP_INTERMEDIARIES)) {
if (!r && !silent && !(flags & MBOXLIST_CREATE_KEEP_INTERMEDIARIES)) {
/* create any missing intermediaries */
r = mboxlist_update_intermediaries(mboxname, mbtype, newmbentry->foldermodseq);
}
Expand Down Expand Up @@ -2454,7 +2454,7 @@ EXPORTED int mboxlist_deletemailbox(const char *name, int isadmin,
r = mboxlist_update_full(newmbentry, /*localonly*/1, silent);

/* any other updated intermediates get the same modseq */
if (!r && !keep_intermediaries) {
if (!r && !silent && !keep_intermediaries) {
r = mboxlist_update_intermediaries(mbentry->name, mbentry->mbtype, newmbentry->foldermodseq);
}

Expand Down Expand Up @@ -2952,7 +2952,7 @@ EXPORTED int mboxlist_renamemailbox(const mbentry_t *mbentry,
if (!r && newmailbox)
r = mailbox_commit(newmailbox);

if (!keep_intermediaries) {
if (!keep_intermediaries && !silent) {
if (!r) r = mboxlist_update_intermediaries(oldname, newmbentry->mbtype, newmbentry->foldermodseq);
if (!r) r = mboxlist_update_intermediaries(newname, newmbentry->mbtype, newmbentry->foldermodseq);
}
Expand Down

0 comments on commit acec276

Please sign in to comment.