From: Timo Sirainen Date: Wed, 20 May 2009 21:53:03 +0000 (-0400) Subject: deliver_log_format: %s should contain subject in UTF8, not in MIME-encoded form. X-Git-Tag: 2.0.alpha1~717 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6454ff63651123d9f7e6ef6d84e69d60dbe29167;p=thirdparty%2Fdovecot%2Fcore.git deliver_log_format: %s should contain subject in UTF8, not in MIME-encoded form. --HG-- branch : HEAD --- diff --git a/src/lib-lda/mail-deliver.c b/src/lib-lda/mail-deliver.c index 9e040ade0f..74bcb6f8e9 100644 --- a/src/lib-lda/mail-deliver.c +++ b/src/lib-lda/mail-deliver.c @@ -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);