]> granicus.if.org Git - mutt/commitdiff
Backed out changeset 2a4ca6917fd0.
authorBrendan Cully <brendan@kublai.com>
Tue, 2 Mar 2010 00:14:57 +0000 (16:14 -0800)
committerBrendan Cully <brendan@kublai.com>
Tue, 2 Mar 2010 00:14:57 +0000 (16:14 -0800)
It is incompatible with $assumed_charset (see #2014).

rfc822.c

index b1809cc2d9964d09d14623fb63c48624fd031f95..5569d319fc92bfa2023b974f327df78127747fb9 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -38,7 +38,6 @@
 #endif
 
 #include "mutt_idna.h"
-#include "rfc2047.h"
 
 #define terminate_string(a, b, c) do { if ((b) < (c)) a[(b)] = 0; else \
        a[(c)] = 0; } while (0)
@@ -492,11 +491,9 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s)
       cur = rfc822_new_address ();
       if (phraselen)
       {
-       cur->personal = safe_strdup (phrase);
        /* if we get something like "Michael R. Elkins" remove the quotes */
-       /* quotes may be encoded in RFC2047 */
-       rfc2047_decode (&cur->personal);
-       rfc822_dequote_comment (cur->personal);
+       rfc822_dequote_comment (phrase);
+       cur->personal = safe_strdup (phrase);
       }
       if ((ps = parse_route_addr (s + 1, comment, &commentlen, sizeof (comment) - 1, cur)) == NULL)
       {