[gmime] Added more broken rfc2047 tests to test previous commit



commit f9d73e813c1e82423ee2dc31b9ad36893393788f
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sun Dec 18 20:59:41 2011 -0500

    Added more broken rfc2047 tests to test previous commit

 tests/test-mime.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-mime.c b/tests/test-mime.c
index 3ac64c1..553ecce 100644
--- a/tests/test-mime.c
+++ b/tests/test-mime.c
@@ -208,6 +208,14 @@ static struct {
 	{ "=?utf-8?Q?{#D=C3=A8=C3=A9=C2=A3=C3=A5=C3=BD_M$=C3=A1=C3?= =?utf-8?Q?=AD =C3=A7=C3=B8m #}?= <user domain com>",
 	  "\"{#DÃÃÂÃÃ M$ÃÃ ÃÃm #}\" <user domain com>",
 	  "=?iso-8859-1?b?eyNE6Omj5f0gTSTh7S7n+G1AI30=?= <user domain com>" },
+	/* quoted-printable payload split between multiple encoded-word tokens */
+	{ "=?utf-8?Q?{#D=C3=A8=C3=A9=C2=?= =?utf-8?Q?A3=C3=A5=C3=BD_M$=C3=A1=C?= =?utf-8?Q?3=AD =C3=A7=C3=B8m #}?= <user domain com>",
+	  "\"{#DÃÃÂÃÃ M$ÃÃ ÃÃm #}\" <user domain com>",
+	  "=?iso-8859-1?b?eyNE6Omj5f0gTSTh7S7n+G1AI30=?= <user domain com>" },
+	/* base64 payload split between multiple encoded-word tokens */
+	{ "=?iso-8859-1?b?ey?= =?iso-8859-1?b?NE6Omj5f0gTSTh7S7n+G1AI30=?= <user domain com>",
+	  "\"{#DÃÃÂÃÃ M$ÃÃ ÃÃm #}\" <user domain com>",
+	  "=?iso-8859-1?b?eyNE6Omj5f0gTSTh7S7n+G1AI30=?= <user domain com>" },
 };
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]