dovecot-2.1: lib-storage: Getting headers as UTF-8 could have re...

dovecot at dovecot.org dovecot at dovecot.org
Thu Nov 24 00:53:50 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/40aba52a4386
changeset: 13768:40aba52a4386
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Nov 24 00:53:37 2011 +0200
description:
lib-storage: Getting headers as UTF-8 could have returned garbage for multi-line headers.

diffstat:

 src/lib-storage/index/index-mail-headers.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4ecb77154ac7 -r 40aba52a4386 src/lib-storage/index/index-mail-headers.c
--- a/src/lib-storage/index/index-mail-headers.c	Thu Nov 24 00:52:09 2011 +0200
+++ b/src/lib-storage/index/index-mail-headers.c	Thu Nov 24 00:53:37 2011 +0200
@@ -717,7 +717,7 @@
 
 		/* decode MIME encoded-words. decoding may also add new LFs. */
 		if (message_header_decode_utf8((const unsigned char *)input,
-					       strlen(list[i]), str, FALSE))
+					       strlen(input), str, FALSE))
 			input = p_strdup(mail->data_pool, str_c(str));
 		decoded_list[i] = input;
 	}


More information about the dovecot-cvs mailing list