]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lda: mail-deliver - Properly parse Message-ID header.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 27 Apr 2020 22:15:00 +0000 (00:15 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 4 May 2020 10:43:32 +0000 (10:43 +0000)
src/lib-lda/mail-deliver.c

index c4761aed5014db2eb55faac5508d23eeccf45977..68a98123e3f40b78d2f8388083fb3c576d67412f 100644 (file)
@@ -118,7 +118,7 @@ mail_deliver_fields_update(struct mail_deliver_fields *fields, pool_t pool,
                return;
        fields->filled = TRUE;
 
-       if (mail_get_first_header(mail, "Message-ID", &message_id) > 0)
+       if (mail_get_message_id(mail, &message_id) > 0)
                message_id = str_sanitize(message_id, 200);
        update_str_field(pool, &fields->message_id, message_id);