process-crypto failing when encountering an unknown algorithm
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sat, 11 Oct 2014 11:46:28 +0000 (07:46 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:13 +0000 (10:05 -0800)
ff/87102d2463822d26867669f8f05d539e2181c2 [new file with mode: 0644]

diff --git a/ff/87102d2463822d26867669f8f05d539e2181c2 b/ff/87102d2463822d26867669f8f05d539e2181c2
new file mode 100644 (file)
index 0000000..3672900
--- /dev/null
@@ -0,0 +1,95 @@
+Return-Path: <dkg@fifthhorseman.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id B5901431FDA\r
+       for <notmuch@notmuchmail.org>; Sat, 11 Oct 2014 04:46:48 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id l9Fjf+sDK4JK for <notmuch@notmuchmail.org>;\r
+       Sat, 11 Oct 2014 04:46:43 -0700 (PDT)\r
+Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3703A431FD0\r
+       for <notmuch@notmuchmail.org>; Sat, 11 Oct 2014 04:46:43 -0700 (PDT)\r
+Received: from fifthhorseman.net\r
+ (h-67-100-110-147.nycm.ny.dynamic.megapath.net        [67.100.110.147])       by\r
+ che.mayfirst.org (Postfix) with ESMTPSA id D7BDAF984  for\r
+ <notmuch@notmuchmail.org>; Sat, 11 Oct 2014 07:46:34 -0400 (EDT)\r
+Received: by fifthhorseman.net (Postfix, from userid 1000)\r
+       id B84E4201AB; Sat, 11 Oct 2014 07:46:34 -0400 (EDT)\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+To: notmuch mailing list <notmuch@notmuchmail.org>\r
+Subject: process-crypto failing when encountering an unknown algorithm\r
+User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 11 Oct 2014 07:46:28 -0400\r
+Message-ID: <87fveu25ij.fsf@alice.fifthhorseman.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha512; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 11 Oct 2014 11:46:48 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+hi folks--\r
+\r
+sorry to not have a clearer debugging statement right no (ENOTIME to\r
+generate something nice) but i think notmuch-emacs was failing to render\r
+a thread for me when one of the messages involved was either signed with\r
+or encrypted using an algorithm that gpg didn't know about.\r
+\r
+I ran into this because i'm working on gpg 2.1, which implements some\r
+OpenPGP elliptic curve crypto.\r
+\r
+notmuch really shouldn't just fail to render the entire thread in the\r
+event that it sees an unknown algorithm -- it should just show the\r
+encrypted message and indicate failure to decrypt.\r
+\r
+If i can get more time, i'll try to dig deeper and craft an example\r
+message, and a proper bug report, but if anyone else can do that part,\r
+i'd appreciate it.\r
+\r
+    --dkg\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1\r
+\r
+iQJ8BAEBCgBmBQJUORiVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w\r
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB\r
+NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpcLtcP/iIb1y+1ZapUXNOFqbrClUJD\r
+TlyLHCtA+BNI51XyB3nEmpyvpAkH+TtCOMQLaCFiCz/6jeGiyLTc/Mwhbf2E/HyV\r
+3tbSrF6SjwrT0K44aOkhwwnO24RXhjgtuoTSnDNlecmA+W2vwEz97L5D6Rz2pU7e\r
+M9U7EGHy0PHpjsERnDZe08L0+lMVPVMyw3c/ZaASk2RNsDpow9eRS+bz9bVTOozn\r
+M5mgZaxLEewb3E91mioJxXm+KMsmBeB/wGLErx2VHqAHSdtimT721cD82+PbSrFB\r
+j8m3Nzjq9XKrLuwPR0JYWe2kf7r63sVW8tIaAWeNNgdmvZe+m8bq10S/vLw9N4yC\r
+oUw7wKyaIUa98g7NIa4hXP1/VEgBM/XYehbHGTHkviNxxccdNZ0Twz+5cxHOL0fP\r
+ig49dMZqFOJ/+my+fVKpv2VfjWzDknRFSWAEK006fCZBjcJO1aY9rrcv/puw4p2/\r
+J7+sG5HpECeec4sfsZKQrIgoNOO0v2xKN+BmvwXQ8Vec1l65WS5STGPOAPKWCO2R\r
+Yj4nclWPszQN6IQJwcHyxQKC35JtqB6EEORlkIVNS1VaI10rEKfhrDeHEkFcj6hX\r
+9agYSebKx2gqVPMJXoDY7c+l8wLNrevx6ZmsL4BIs7ms3Vi499nnGpUOumqadH5/\r
+MGTD7W71dEWUVJoGA0N3\r
+=QE8z\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r