From 77945d4ee90c3523ef04ad26a02ffe668e1ec41d Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Tue, 30 Jul 2013 15:46:26 +2000 Subject: [PATCH] Re: UTF-8 in mail headers (namely FROM) sent by bugzilla --- 97/b0ae350b3b80c56b2cb0b2637ac264fd2aa2c7 | 124 ++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 97/b0ae350b3b80c56b2cb0b2637ac264fd2aa2c7 diff --git a/97/b0ae350b3b80c56b2cb0b2637ac264fd2aa2c7 b/97/b0ae350b3b80c56b2cb0b2637ac264fd2aa2c7 new file mode 100644 index 000000000..ef388b6dd --- /dev/null +++ b/97/b0ae350b3b80c56b2cb0b2637ac264fd2aa2c7 @@ -0,0 +1,124 @@ +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 8A026431FC0 + for ; Mon, 29 Jul 2013 12:46:40 -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 wClswLbLxyPx for ; + Mon, 29 Jul 2013 12:46:35 -0700 (PDT) +Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) + by olra.theworths.org (Postfix) with ESMTP id BBE3E431FBF + for ; Mon, 29 Jul 2013 12:46:35 -0700 (PDT) +Received: from [192.168.23.229] (dsl254-070-154.nyc1.dsl.speakeasy.net + [216.254.70.154]) + by che.mayfirst.org (Postfix) with ESMTPSA id BE8C4F984; + Mon, 29 Jul 2013 15:46:27 -0400 (EDT) +Message-ID: <51F6C692.5090104@fifthhorseman.net> +Date: Mon, 29 Jul 2013 15:46:26 -0400 +From: Daniel Kahn Gillmor +User-Agent: Mozilla/5.0 (X11; Linux x86_64; + rv:17.0) Gecko/20130630 Icedove/17.0.7 +MIME-Version: 1.0 +To: Jani Nikula +Subject: Re: UTF-8 in mail headers (namely FROM) sent by bugzilla +References: <08cb1dcd-c5db-4e33-8b09-7730cb3d59a2@gmail.com> + <871u6psjwr.fsf@ericabrahamsen.net> + <5712cc41-d0ce-4ed3-af1c-37cf639dd9c0@gmail.com> + <87y58xv71x.fsf@zancas.localnet> <87d2q5wrre.fsf@nikula.org> +In-Reply-To: <87d2q5wrre.fsf@nikula.org> +X-Enigmail-Version: 1.5.1 +Content-Type: multipart/signed; micalg=pgp-sha512; + protocol="application/pgp-signature"; + boundary="----enig2URNAUIUXDSAWWJJWRTKN" +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +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, 29 Jul 2013 19:46:40 -0000 + +This is an OpenPGP/MIME signed message (RFC 4880 and 3156) +------enig2URNAUIUXDSAWWJJWRTKN +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +On 07/26/2013 06:16 AM, Jani Nikula wrote: +> I'm experiencing a similar problem with the Subject: headers in bugzill= +a +> mail. Per RFC 2047, +>=20 +> Ordinary ASCII text and 'encoded-word's may appear together in the +> same header field. However, an 'encoded-word' that appears in a +> header field defined as '*text' MUST be separated from any adjacent= + +> 'encoded-word' or 'text' by 'linear-white-space'. +>=20 +> In the problematic mails, the encoded-word begins immediately after +> preceding text, i.e. without linear-white-space. Manually adding that +> space in the message file makes the subject display as expected. +>=20 +> The decoding is done in the cli using g_mime_message_get_subject(). I'm= + +> not sure if there's much that can be done about it within notmuch. + +I think asking gmime to deliberately mis-parse the subject line would +probably be a bad idea, because that would cause some strings to be +impossible to represent in the subject. + +So Jani's report here sounds like a bug in bugzilla itself. Jani, have +you reported this problem to that project? I don't see it on their +bugtracker [0], though maybe my scan of the list wasn't as thorough as +it should be. + +Regards, + + --dkg + +[0] +https://bugzilla.mozilla.org/buglist.cgi?product=3DBugzilla&component=3DE= +mail%20Notifications&resolution=3D--- + + +------enig2URNAUIUXDSAWWJJWRTKN +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.14 (GNU/Linux) +Comment: Using GnuPG with Icedove - http://www.enigmail.net/ + +iQJ8BAEBCgBmBQJR9saSXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB +NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpcdf4P/0TVY7jjhka4R3QB2sjK0Ioi +fI+i86E0vsREEzcSICj27SU9tvsPVtiakpMhhByN/d3YNU6w6kd7VMN1ntPJ+dos +n7Xg/VSsUbUBRmDjPbprCkJ8/8YUbhrksirTB6rM3bMMltEjFOBexfZWYr8oQJG4 +Ffc6dRbaIwt0ypnXpQzd8xGzr+lo5tPBZhg9hFvGAkIu1vPp3UY+E2jsz/00Tk7N +oMfOLJAZ+fvbx/LI8kyJR3P5UfBGRvOr4hHXrBDALDPopyyCe7+4bLpXZBxLYJqP +Ju8hHP+OivgFeoRb+lvZRTS6i6x8kUt1weZAJfuY5lFjiorwOODZccPXB9ZnnHFp +61jl74FVsnjkD/JZKr6EX5hQIez0puBl/a1m3QJAEWImJtqKGSV7kWkym+qHqnrL +tDqjcdjzkxBHYlz9NBEt1zupEt3yOEZIboAsoY49O6+QaFzYed9W6U0rgdhKQ9ct +SEQcustBpTOSfXKTdahgu98zRVtT85ugL+pjM46rvRm0FVP9cwshoHOYC0dEuB4b +X6J7e57X/twOw7U3gbh7M0JdWi9X5OiXfTiXx6b1WQibbC1vIVijxeTomrFbXvvd +O8/JbXnjynr+vGuXGMpKBwdrYzt0B4wtCQ5DzIbFMXCdKRCRKCfHyef7fFH63vAs +bYBbyfshGJX2fep6GbnV +=4HTT +-----END PGP SIGNATURE----- + +------enig2URNAUIUXDSAWWJJWRTKN-- -- 2.26.2