dovecot-1.1: message header parser: Don't set hdr->continues=TRU...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 26 23:53:47 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/e596c98605dd
changeset: 8294:e596c98605dd
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 26 16:31:42 2009 -0400
description:
message header parser: Don't set hdr->continues=TRUE when hdr->eoh=TRUE.
This happened if body began with LWSP.

diffstat:

1 file changed, 2 insertions(+)
src/lib-mail/message-header-parser.c |    2 ++

diffs (12 lines):

diff -r c3612800cb90 -r e596c98605dd src/lib-mail/message-header-parser.c
--- a/src/lib-mail/message-header-parser.c	Tue May 26 14:19:22 2009 -0400
+++ b/src/lib-mail/message-header-parser.c	Tue May 26 16:31:42 2009 -0400
@@ -256,6 +256,8 @@ int message_parse_header_next(struct mes
 		line->name_len = line->value_len = line->full_value_len = 0;
 		line->name = ""; line->value = line->full_value = NULL;
 		line->middle = NULL; line->middle_len = 0;
+		line->full_value_offset = line->name_offset;
+		line->continues = FALSE;
 	} else if (line->continued) {
 		line->value = msg;
 		line->value_len = size;


More information about the dovecot-cvs mailing list