mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:54:40 +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:
@ -1219,7 +1219,7 @@ func (Webmail) MailboxCreate(ctx context.Context, name string) {
|
||||
xdbwrite(ctx, acc, func(tx *bstore.Tx) {
|
||||
var exists bool
|
||||
var err error
|
||||
changes, _, exists, err = acc.MailboxCreate(tx, name)
|
||||
changes, _, exists, err = acc.MailboxCreate(tx, name, store.SpecialUse{})
|
||||
if exists {
|
||||
xcheckuserf(ctx, errors.New("mailbox already exists"), "creating mailbox")
|
||||
}
|
||||
|
Reference in New Issue
Block a user