Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D3319431FD0 for ; Mon, 24 Oct 2011 09:09:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WUfh1+k3RHes for ; Mon, 24 Oct 2011 09:09:43 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by olra.theworths.org (Postfix) with ESMTP id 22044431FB6 for ; Mon, 24 Oct 2011 09:09:43 -0700 (PDT) Received: from [192.168.23.207] (dsl254-070-154.nyc1.dsl.speakeasy.net [216.254.70.154]) by che.mayfirst.org (Postfix) with ESMTPSA id 20668F970; Mon, 24 Oct 2011 12:09:39 -0400 (EDT) Message-ID: <4EA58DC6.6090108@fifthhorseman.net> Date: Mon, 24 Oct 2011 12:09:42 -0400 From: Daniel Kahn Gillmor User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110807 Icedove/5.0 MIME-Version: 1.0 To: Petter Reinholdtsen Subject: Re: Incorrect parsing of email addresses (MIME with quotes) References: <2flr522zju3.fsf@login2.uio.no> In-Reply-To: <2flr522zju3.fsf@login2.uio.no> X-Enigmail-Version: 1.2.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig06C3ED55743C5424DCBAD12F" Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: notmuch List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2011 16:09:44 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig06C3ED55743C5424DCBAD12F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/24/2011 07:53 AM, Petter Reinholdtsen wrote: >=20 > The notmuch email frontend have a problem parsing email headers. > The problem is headers like this >=20 > From: "=3D?iso-8859-1?q?=3DD8yvind_Normann?=3D" >=20 > which my mailbox got a lot of. The frontend show the address as=20 >=20 > =3D?iso-8859-1?q?=3DD8yvind_Normann?=3D >=20 > instead of >=20 > =C3=98yvind Normann >=20 > 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 --------------enig06C3ED55743C5424DCBAD12F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQJ8BAEBCgBmBQJOpY3GXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwRUU1QkU5NzkyODJEODBCOUY3NTQwRjFD Q0QyRUQ5NEQyMTczOUU5AAoJEMzS7ZTSFznp4fYP/j4kXdlKCP0Z7Jp6uoK3z1Uk G96dNMQfODq6cOmXby4WvQrXOf6Gq8Hxvi9U1BuU5Aq86HDFu+UBHHTOsURv6GcQ vs3ceVl0bhNj7eOFBBJYW86L30bwlMCUE+rIZg+MnE/EbZ0Uevvv+uz91heUEhi4 OymbiE8azP/kQ+kCB9KWEh5HqzDVTjFbeYAxtht/sTEgkpoYVMdig3/VnrMznDaZ OE0bJhPDhX7pX5m2ZrNXcblJVJMU+IM7tNRl2271s8BB3jpiZ9itqBawItvqJpju 8Bbnym4yG+zb/3HrC3QkLKvMWh5zu2GFjZI6mgI4FsfNpTRCa1lPbJ3yM2bdbiBI XhJ/71gMe+5Ns3GqNGTRhB09FfGJ52HdRBs9XgGJN+tiV59J2Kas4v3ksz/HTDP5 rn/5s3GZfvct7nO/vAoIz9aKVLAIg5roeJEiUO7HT6s8NErOUgAI/9EGQNGZZzP2 wz96h9oQ+KWgE+Y0OOaSpIB9eUt0OVgxYohbThR+6sMqTqUHD/Eby6RnyTq70m3Y kSqEQCq3+TQ6OoMiOGiD+Hsq0DtexbFJyk65RzydUYnA2VTaJm8csuR9WApWY0HF k6USprLC9i6mGDqLym+wn/4GBv5ZXDZgqfFCS9kVGfdfKCZLbRuojZaed/snfxJ5 U6V7Xt8vDfShSYtKH1Xk =n9d+ -----END PGP SIGNATURE----- --------------enig06C3ED55743C5424DCBAD12F--