]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildir: get_stream() - Add missing lookup_abort and mail_stream_accessed handling
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 29 Nov 2021 19:44:05 +0000 (20:44 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 21 Dec 2021 10:06:58 +0000 (10:06 +0000)
src/lib-storage/index/maildir/maildir-mail.c

index f9c1a96626c8d0d82fbcc018f8921864c0051117..ed20f8656f9f8ec04cbb89b4b5fe8f397983cd18 100644 (file)
@@ -68,6 +68,12 @@ maildir_open_mail(struct maildir_mailbox *mbox, struct mail *mail,
 
        *deleted_r = FALSE;
 
+       if (mail->lookup_abort != MAIL_LOOKUP_ABORT_NEVER) {
+               mail_set_aborted(mail);
+               return NULL;
+       }
+       mail->mail_stream_accessed = TRUE;
+
        ctx.fd = -1;
        ctx.path = NULL;