From 2dd7e35afd3c0985aed13c80eb1f670c669a66aa Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 6 Jun 2002 20:41:14 +0000 Subject: Parse "From: Dan Winship " (with no domain) in the way the sender * camel-mime-utils.c (header_decode_mailbox): Parse "From: Dan Winship " (with no domain) in the way the sender meant it, even though it's completely wrong. svn path=/trunk/; revision=17137 --- camel/ChangeLog | 6 ++++++ camel/camel-mime-utils.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index e4cc73ac72..f9a5c7816d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2002-06-05 Dan Winship + + * camel-mime-utils.c (header_decode_mailbox): Parse + "From: Dan Winship " (with no domain) in the way the sender + meant it, even though it's completely wrong. + 2002-06-04 Not Zed * providers/local/camel-local-provider.c: Remove the diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index d32558096e..581fd1bff4 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2454,7 +2454,7 @@ header_decode_mailbox(const char **in) dom = header_decode_domain(&inptr); addr = g_string_append(addr, dom); g_free(dom); - } else { + } else if (*inptr != '>' || !closeme) { /* If we get a <, the address was probably a name part, lets try again shall we? */ /* Another fix for seriously-broken-mailers */ if (*inptr && *inptr != ',') { -- cgit v1.2.3