changeset 9378:f6d668562f5f HEAD

quoted-printable decoding didn't handle QP after soft line breaks correctly. Patch by Yamazaki Hideto.
author Timo Sirainen <tss@iki.fi>
date Thu, 10 Sep 2009 19:13:51 -0400
parents 35c5f8d064f5
children a493ceb26615
files src/lib-mail/quoted-printable.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-mail/quoted-printable.c	Thu Sep 10 16:50:11 2009 -0400
+++ b/src/lib-mail/quoted-printable.c	Thu Sep 10 19:13:51 2009 -0400
@@ -43,7 +43,7 @@
 
 		if (src[src_pos+1] == '\n') {
 			/* =\n -> skip both */
-			src_pos += 2;
+			src_pos++;
 			next += 2;
 			continue;
 		}
@@ -53,7 +53,7 @@
 
 		if (src[src_pos+1] == '\r' && src[src_pos+2] == '\n') {
 			/* =\r\n -> skip both */
-			src_pos += 3;
+			src_pos += 2;
 			next += 3;
 			continue;
 		}