]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
deliver_log_format: %s should contain subject in UTF8, not in MIME-encoded form.
authorTimo Sirainen <tss@iki.fi>
Wed, 20 May 2009 21:53:03 +0000 (17:53 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 20 May 2009 21:53:03 +0000 (17:53 -0400)
--HG--
branch : HEAD

src/lib-lda/mail-deliver.c

index 9e040ade0f7ba3d5819d2fa8a795e4d7dbfae165..74bcb6f8e9d0cb526b956412382718285f6d169b 100644 (file)
@@ -47,7 +47,7 @@ get_log_var_expand_table(struct mail_deliver_context *ctx, const char *message)
 
        tab[0].value = message;
        (void)mail_get_first_header(ctx->src_mail, "Message-ID", &tab[1].value);
-       (void)mail_get_first_header(ctx->src_mail, "Subject", &tab[2].value);
+       (void)mail_get_first_header_utf8(ctx->src_mail, "Subject", &tab[2].value);
        tab[3].value = mail_deliver_get_address(ctx, "From");
        for (i = 1; tab[i].key != '\0'; i++)
                tab[i].value = str_sanitize(tab[i].value, 80);