dovecot: If Content-Transfer-Encoding type is unknown, skip the ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 29 21:39:34 EET 2007


details:   http://hg.dovecot.org/dovecot/rev/5de49bb0a7b3
changeset: 7071:5de49bb0a7b3
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 29 21:39:30 2007 +0200
description:
If Content-Transfer-Encoding type is unknown, skip the body instead of
handling it as binary.

diffstat:

1 file changed, 1 insertion(+)
src/lib-mail/message-decoder.c |    1 +

diffs (11 lines):

diff -r 1bf9e7248e15 -r 5de49bb0a7b3 src/lib-mail/message-decoder.c
--- a/src/lib-mail/message-decoder.c	Sat Dec 29 21:28:58 2007 +0200
+++ b/src/lib-mail/message-decoder.c	Sat Dec 29 21:39:30 2007 +0200
@@ -87,6 +87,7 @@ parse_content_transfer_encoding(struct m
 	(void)rfc822_skip_lwsp(&parser);
 	(void)rfc822_parse_mime_token(&parser, value);
 
+	ctx->content_type = CONTENT_TYPE_UNKNOWN;
 	switch (str_len(value)) {
 	case 4:
 		if (i_memcasecmp(str_data(value), "7bit", 4) == 0 ||


More information about the dovecot-cvs mailing list