mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 08:13:50 +00:00
Stalwart's default folder set has no archive-role mailbox, so on a fresh account Archive did nothing but raise the not-found toast (#578). Both archive paths now go through ensureArchiveMailbox(), which creates "Archive" with the archive role in the account the action targets (own, the selected shared folder's owner, or the pinned account in unified view), reloads the mailbox list and continues with the store's own object. createMailbox() takes an optional role for this. A refused creation or a folder that does not come back still surfaces as an error. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>