summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-03 04:35:04 +0000
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-03 04:35:04 +0000
commit66fc7ded89441484153c249639f7599cdafb34de (patch)
treec04a435b558fd9f457bcb7218ef8d14eb9c8148b
parent101269513979027978e757e6130578d453c0180d (diff)
downloadevolution-data-server-66fc7ded89441484153c249639f7599cdafb34de.tar.gz
Fixed the fix for stupidly-broken-mailer bug #5 to work when multipleEVOLUTION_1_0_5
2002-05-02 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_decode_mailbox): Fixed the fix for stupidly-broken-mailer bug #5 to work when multiple unescaped characters were in a row. Fixes bug #24140.
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-utils.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 7019ce11f..fc1ace103 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-02 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-utils.c (header_decode_mailbox): Fixed the fix for
+ stupidly-broken-mailer bug #5 to work when multiple unescaped
+ characters were in a row. Fixes bug #24140.
+
2002-04-29 Not Zed <NotZed@Ximian.com>
* providers/local/camel-spool-store.c (get_folder_info): We want
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 8563a4f14..b6f6052d8 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -2367,7 +2367,7 @@ header_decode_mailbox(const char **in)
} else {
/* Fix for stupidly-broken-mailers that like to put '.''s in names unquoted */
/* see bug #8147 */
- if (*inptr && *inptr != '<') {
+ while (!pre && *inptr && *inptr != '<') {
w(g_warning("Working around stupid mailer bug #5: unescaped characters in names"));
name = g_string_append_c(name, *inptr++);
pre = header_decode_word(&inptr);