]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Don't try to add attachment flags for readonly mailboxes
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 12 May 2023 15:50:19 +0000 (18:50 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 1 Oct 2025 11:11:18 +0000 (11:11 +0000)
src/lib-storage/index/index-mail.c

index 2f5f8a30eb67aaeec796746c02ff37614af6bc67..3c70bd96313e134221d1d6cded6e02b67c836201 100644 (file)
@@ -125,6 +125,7 @@ index_mail_want_attachment_keywords_on_fetch(struct index_mail *mail)
 
        return mail_set->parsed_mail_attachment_detection_add_flags &&
                !mail_set->parsed_mail_attachment_detection_no_flags_on_fetch &&
+               !mailbox_is_readonly(mail->mail.mail.box) &&
                !mail_has_attachment_keywords(&mail->mail.mail);
 }