Re: Incorrect parsing of email addresses (MIME with quotes)

Subject: Re: Incorrect parsing of email addresses (MIME with quotes)

Date: Mon, 24 Oct 2011 12:09:42 -0400

To: Petter Reinholdtsen

Cc: notmuch@notmuchmail.org

From: Daniel Kahn Gillmor


On 10/24/2011 07:53 AM, Petter Reinholdtsen wrote:
> 
> The notmuch email frontend have a problem parsing email headers.
> The problem is headers like this
> 
>   From: "=?iso-8859-1?q?=D8yvind_Normann?=" <oyvind.norman@uio.no>
> 
> which my mailbox got a lot of.  The frontend show the address as 
> 
>   =?iso-8859-1?q?=D8yvind_Normann?=
> 
> instead of
> 
>   Øyvind Normann
> 
> The problem is the quotes around the MIME encoded string.  Mutt and
> Gnus handle these headers properly, but notmuch do not.


http://tools.ietf.org/html/rfc2047#page-8

states quite clearly:

   + An 'encoded-word' MUST NOT appear within a 'quoted-string'.

I'd argue that notmuch is doing the right thing here, and that MUAs that
wrap encoded words in quotes (or that apply decoding rules within quoted
strings) are the ones that need fixing.

Regards,

	--dkg

signature.asc (application/pgp-signature)

Thread: