summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-06-06 20:36:51 +0000
committerDan Winship <danw@src.gnome.org>2002-06-06 20:36:51 +0000
commit071b750f7b321a6b563da9b36ffec0d52d6ab728 (patch)
treeaa1fb98196a0b0687b480cbcd5968f328a1ca031
parentc02c6fd541f7cab40dfb98575e9f6f984953c651 (diff)
downloadevolution-data-server-071b750f7b321a6b563da9b36ffec0d52d6ab728.tar.gz
Parse "From: Dan Winship <danw>" (with no domain) in the way the sender
* camel-mime-utils.c (header_decode_mailbox): Parse "From: Dan Winship <danw>" (with no domain) in the way the sender meant it, even though it's completely wrong.
-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 edc05d655..e9dad199f 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2002-06-05 Dan Winship <danw@ximian.com>
+
+ * camel-mime-utils.c (header_decode_mailbox): Parse
+ "From: Dan Winship <danw>" (with no domain) in the way the sender
+ meant it, even though it's completely wrong.
+
2002-06-05 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/*: Revert the UID set patch, it seems to have
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index b6f6052d8..97b621223 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -2433,7 +2433,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 != ',') {