Skip to content

Commit

Permalink
mboxlist: need to get the modseq after changing the mailbox
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Dec 12, 2023
1 parent b041005 commit 9752dd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imap/mboxlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -2836,6 +2836,9 @@ EXPORTED int mboxlist_renamemailbox(const mbentry_t *mbentry,
/* Rename the mailbox metadata */
r = mailbox_rename_nocopy(oldmailbox, newmbentry, silent);
if (r) goto done;

// foldermodseq gets updated by the rename
newmbentry->foldermodseq = oldmailbox->i.highestmodseq;
}

syslog(LOG_INFO, "Rename: %s -> %s", oldname, newname);
Expand Down

0 comments on commit 9752dd1

Please sign in to comment.