From: Daniel Kahn Gillmor Date: Fri, 17 Jun 2016 02:30:58 +0000 (+2000) Subject: notmuch reply is confused about multiple (or case-insensitive?) cc headers X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2390d4c531764f1448af9fefe90660fc576b79eb;p=notmuch-archives.git notmuch reply is confused about multiple (or case-insensitive?) cc headers --- diff --git a/37/f5fc0be82c9cc180295d7b81dd03c9f88373c6 b/37/f5fc0be82c9cc180295d7b81dd03c9f88373c6 new file mode 100644 index 000000000..de5d5f252 --- /dev/null +++ b/37/f5fc0be82c9cc180295d7b81dd03c9f88373c6 @@ -0,0 +1,164 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id C27DD6DE01F7 + for ; Thu, 16 Jun 2016 19:31:12 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.039 +X-Spam-Level: +X-Spam-Status: No, score=-0.039 tagged_above=-999 required=5 + tests=[AWL=-0.039] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id YrnE7PRJLKib for ; + Thu, 16 Jun 2016 19:31:04 -0700 (PDT) +Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) + by arlo.cworth.org (Postfix) with ESMTP id 1DD996DE00EB + for ; Thu, 16 Jun 2016 19:31:03 -0700 (PDT) +Received: from fifthhorseman.net (unknown [108.58.6.98]) + by che.mayfirst.org (Postfix) with ESMTPSA id F1578F99A + for ; Thu, 16 Jun 2016 22:31:02 -0400 (EDT) +Received: by fifthhorseman.net (Postfix, from userid 1000) + id D663520050; Thu, 16 Jun 2016 22:31:01 -0400 (EDT) +From: Daniel Kahn Gillmor +To: Notmuch Mail +Subject: notmuch reply is confused about multiple (or case-insensitive?) cc + headers +User-Agent: Notmuch/0.22+69~gd812194 (https://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Thu, 16 Jun 2016 22:30:58 -0400 +Message-ID: <87d1ngv95p.fsf@alice.fifthhorseman.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha512; protocol="application/pgp-signature" +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Fri, 17 Jun 2016 02:31:12 -0000 + +--=-=-= +Content-Type: text/plain +Content-Transfer-Encoding: quoted-printable + +hey notmuchers-- + +I'm using notmuch from close to git master. + +I just received an e-mail with headers like this: + +=2D----- +From: Alice +To: Daniel Kahn Gillmor +Cc: Bob +Subject: wowsers! +cc: Charles +Message-Id: +Date: Thu, 16 Jun 2016 22:14:41 -0400 + +blah blah +=2D----- + +Note the weirdness about the Cc fields! + + https://tools.ietf.org/html/rfc5322#page-21 + +Makes it clear that there is supposed to only be zero or one cc header +in an e-mail, but notmuch-emacs is nice enough to show me both. + +However, if i do: + + notmuch reply id:abc123@example.org + +then Charles is omitted: + +=2D--------- +From: Daniel Kahn Gillmor +Subject: Re: wowsers! +To: Alice +Cc: Bob +In-Reply-To: +References: + +On Thu, 16 Jun 2016 22:14:41 -0400, Alice wrote: +> blah blah +=2D--------- + + +In json form: + +0 dkg@alice:~$ notmuch reply --format=3Djson id:abc123@example.org | json_p= +p=20 +{ + "reply-headers" : { + "From" : "Daniel Kahn Gillmor ", + "References" : "", + "To" : "Alice ", + "Cc" : "Bob ", + "Subject" : "Re: wowsers!", + "In-reply-to" : "" + }, + "original" : { + "id" : "abc123@example.org", + "filename" : "REDACTED", + "timestamp" : 1466129681, + "match" : false, + "headers" : { + "Cc" : "Bob , Charles ", + "Date" : "", + "Subject" : "wowsers!", + "From" : "Alice ", + "To" : "Daniel Kahn Gillmor " + }, + "tags" : [], + "excluded" : false" + ... + + + +Note that we see Charles in original[headers[Cc]], but not in +reply-headers[Cc]. + +Seems to me like these two should agree. We should either decide to +take the strict interpretation of RFC 5322 or not. I lean toward +including Charles in both sets, fwiw. + +Anyway, smells like a bug in a weird corner case, and i haven't had time +to track it down or fix it, but i figured i'd report it so that other +people can see it. + + --dkg + +--=-=-= +Content-Type: application/pgp-signature; name="signature.asc" + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQJ8BAEBCgBmBQJXY2DiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFREIyRTc0RjU2RkNGMkI2NzI5N0I3MzUy +NEVDRkY1QUZGNjgzNzBBAAoJECTs/1r/aDcKitkP/R1e1NFFfiqsten5gS2rM8Bh +zxyvj2VcJSxmHkff9EigFdJyc90svY30svqilBIdJd6AMNP5v/tu7TY2wdl7raTe +KPKAwIgUQDCvYjp5ZmvN/EKwd1dwlL6bnRyL/DzALMWeQVdO1D8sV0ruOJBnh50f +fG6ASw2IRMsc/u4le6T0uHjHESI7T8Pm9cYldKvLW8Gf0OXtSqA+qZWcvlqGS6uz +KgMXWAQ+EtAEyOls7PrtnYQ5unFrHfQXf643x2xvPKO2IYpEoOIyci5LfMZIHsyR +6haOP0JRBS8xnbK0bM6D4JT3JTMfwEY81ib4Z6fvVNDpM7YZODJWgGB+F0Rfp6yi +MwlL62mP/yEn1dqZXGHxo4HXqTJykxkXLpBgSgWtcpOYm4dSE6oHczc2hvVWOxHS +Fxww8dMcbFEz27f2IiTIp30vFwDVRCu5HVDmdnGBMq21ftXwt+shf5VMPdVS+nkO +ngmJnKeaPU7MjQ7fPDb4h8sei3mUT5MJWB2/0VcFua8aMWNnXT9bHyZwMHvMp51C +BsRLmigiUeKgyDdC8KBT2g6IrWh7QwgLDFJcht0EI07j6ociKyazZpDgN6Agvq48 ++nRfpI3r5ACrvQcm3QBwQMPrsL6Q/cTyt9LgC/I51odMOUECIDYHfN5nuOfO1S7V +IjAyY2SrpudqANZHnCqS +=6f6q +-----END PGP SIGNATURE----- +--=-=-=--