dovecot-2.0: message-header-parser: MESSAGE_HEADER_PARSER_FLAG_C...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 26 23:52:04 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/d9ce4c485dee
changeset: 9391:d9ce4c485dee
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 26 16:51:08 2009 -0400
description:
message-header-parser: MESSAGE_HEADER_PARSER_FLAG_CLEAN_ONELINE should affect only full_line.
Otherwise it behaves inconsistently between hdr->use_full_value=TRUE/FALSE.

diffstat:

2 files changed, 1 insertion(+), 2 deletions(-)
src/lib-mail/message-header-parser.c |    1 -
src/lib-mail/message-header-parser.h |    2 +-

diffs (23 lines):

diff -r 7b247ab96520 -r d9ce4c485dee src/lib-mail/message-header-parser.c
--- a/src/lib-mail/message-header-parser.c	Tue May 26 16:31:42 2009 -0400
+++ b/src/lib-mail/message-header-parser.c	Tue May 26 16:51:08 2009 -0400
@@ -355,7 +355,6 @@ int message_parse_header_next(struct mes
 		}
 		line->full_value = buffer_get_data(ctx->value_buf,
 						   &line->full_value_len);
-		line->value = line->full_value + value_pos;
 	} else {
 		/* we didn't want full_value, and this is a continued line. */
 		line->full_value = NULL;
diff -r 7b247ab96520 -r d9ce4c485dee src/lib-mail/message-header-parser.h
--- a/src/lib-mail/message-header-parser.h	Tue May 26 16:31:42 2009 -0400
+++ b/src/lib-mail/message-header-parser.h	Tue May 26 16:51:08 2009 -0400
@@ -12,7 +12,7 @@ enum message_header_parser_flags {
 	MESSAGE_HEADER_PARSER_FLAG_SKIP_INITIAL_LWSP	= 0x01,
 	/* Don't add CRs to full_value even if input had them */
 	MESSAGE_HEADER_PARSER_FLAG_DROP_CR		= 0x02,
-	/* Convert [CR+]LF+LWSP to a space character */
+	/* Convert [CR+]LF+LWSP to a space character in full_value */
 	MESSAGE_HEADER_PARSER_FLAG_CLEAN_ONELINE	= 0x04
 };
 


More information about the dovecot-cvs mailing list