From 66fc7ded89441484153c249639f7599cdafb34de Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 3 May 2002 04:35:04 +0000 Subject: Fixed the fix for stupidly-broken-mailer bug #5 to work when multiple 2002-05-02 Jeffrey Stedfast * 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. --- camel/ChangeLog | 6 ++++++ camel/camel-mime-utils.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * 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 * 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); -- cgit v1.2.1