]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mail-storage - Avoid checking new mailbox name for forbidden characters...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 25 Mar 2026 20:56:24 +0000 (21:56 +0100)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 25 Mar 2026 22:08:05 +0000 (23:08 +0100)
Since NFC normalization does not change a text to suddenly contain characters
that are forbidden in a mailbox name, the original mailbox name already
contained the forbidden characters. There is no point in forbidding the
characters in the implicit rename.

src/lib-storage/mail-storage.c

index e8266b617e22f6a725c3cae5e653bb90b81880e4..cab99efc4c36baf65ff7fa89ecbea05799325775 100644 (file)
@@ -1552,6 +1552,7 @@ int mailbox_rename_nfc_forced(struct mailbox_list *list, const char *vname_raw,
                                                  MAILBOX_FLAG_IGNORE_ACLS));
        box_old->notifying_nfc_name_change = TRUE;
        box_new = mailbox_alloc(list, vname_nfc, MAILBOX_FLAG_RAW_NAME);
+       box_new->skip_create_name_restrictions = TRUE;
        box_new->notifying_nfc_name_change = TRUE;
 
        ret = mailbox_rename(box_old, box_new);