mirror of
https://github.com/mjl-/mox.git
synced 2025-07-13 03:34:39 +03:00
implement IMAP CREATE-SPECIAL-USE extension for the mailbox create command, part of rfc 6154
we already supported special-use flags. settable through the webmail interface, and new accounts already got standard mailboxes with special-use flags predefined. but now the IMAP "CREATE" command implements creating mailboxes with special-use flags.
This commit is contained in:
@ -298,7 +298,7 @@ func importctl(ctx context.Context, ctl *ctl, mbox bool) {
|
||||
a.WithWLock(func() {
|
||||
// Ensure mailbox exists.
|
||||
var mb store.Mailbox
|
||||
mb, changes, err = a.MailboxEnsure(tx, mailbox, true)
|
||||
mb, changes, err = a.MailboxEnsure(tx, mailbox, true, store.SpecialUse{})
|
||||
ctl.xcheck(err, "ensuring mailbox exists")
|
||||
|
||||
// We ensure keywords in messages make it to the mailbox as well.
|
||||
|
Reference in New Issue
Block a user