--- /dev/null
+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 arlo.cworth.org (Postfix) with ESMTP id 8B16F6DE014A\r
+ for <notmuch@notmuchmail.org>; Wed, 27 Jan 2016 22:56:34 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.053\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.053 tagged_above=-999 required=5\r
+ tests=[AWL=-0.053] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id oamW-fIcmEpH for <notmuch@notmuchmail.org>;\r
+ Wed, 27 Jan 2016 22:56:31 -0800 (PST)\r
+Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
+ by arlo.cworth.org (Postfix) with ESMTP id B68646DE0173\r
+ for <notmuch@notmuchmail.org>; Wed, 27 Jan 2016 22:56:31 -0800 (PST)\r
+Received: from fifthhorseman.net (ool-6c3a0662.static.optonline.net\r
+ [108.58.6.98])\r
+ by che.mayfirst.org (Postfix) with ESMTPSA id 0191FF991;\r
+ Thu, 28 Jan 2016 01:56:11 -0500 (EST)\r
+Received: by fifthhorseman.net (Postfix, from userid 1000)\r
+ id CCDB71FF94; Thu, 28 Jan 2016 01:56:12 -0500 (EST)\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: SMIME signature verification patches, v4\r
+In-Reply-To: <1453652479-15968-1-git-send-email-david@tethera.net>\r
+References: <1453652479-15968-1-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.21+72~gd8c4f1c (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Thu, 28 Jan 2016 01:56:05 -0500\r
+Message-ID: <87lh7ab3ay.fsf@alice.fifthhorseman.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=sha256; protocol="application/pkcs7-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 28 Jan 2016 06:56:34 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+On Sun 2016-01-24 11:21:14 -0500, David Bremner wrote:\r
+> This is a simple rebase of\r
+>\r
+> id:1450100337-31655-1-git-send-email-david@tethera.net\r
+>\r
+> The first 3 patches of that series are now in master.\r
+\r
+FWIW, i'm now running with this patch series, and i can verify S/MIME\r
+signatures with it.\r
+\r
+When verifying a correct signature, though, the only thing i seem to get\r
+in notmuch-emacs (or in the notmuch show --verify output) is the view of\r
+some kind of fingerprint of the key, with no human-readable name or\r
+e-mail address associated with it.\r
+\r
+for example:\r
+\r
+ "sigstatus" : [\r
+ {\r
+ "created" : 1453962340,\r
+ "status" : "good",\r
+ "fingerprint" : "3E65C58C306C1C42CA5056903B4E6C3C7DF15AD8",\r
+ "expires" : 1485215999\r
+ }\r
+ ],\r
+\r
+whereas the OpenPGP PGP/MIME cleartext signature show:\r
+\r
+ "sigstatus" : [\r
+ {\r
+ "status" : "good",\r
+ "userid" : " Daniel Kahn Gillmor <dkg@fifthhorseman.net>",\r
+ "fingerprint" : "EDB2E74F56FCF2B67297B73524ECFF5AFF68370A",\r
+ "created" : 1453925746\r
+ }\r
+\r
+This lack of userid be a function of my own S/MIME setup (i'm not sure\r
+whether i've got the keys and certs set up exactly right), or of a\r
+failure in gmime's pkcs7 signature handling code. But this is an\r
+improvement over the unpatched notmuch anyway.\r
+\r
+Note that none of this deals with S/MIME-enveloped (encrypted) e-mails\r
+yet either.\r
+\r
+My e-mail certificates and things are now set up within emacs (i'm using\r
+EPG instead of openssl) -- i should be able to sign this mail,\r
+and anyone else running this series should be able to verify it.\r
+\r
+I've rebased my own crypto series (indexing cleartext) on top of this\r
+series, and it also works fine (though there were a few commits that\r
+were tricky to rebase). I'd like it if this S/MIME patch series would\r
+get upstreamed!\r
+\r
+ --dkg\r
+\r
+--=-=-=\r
+Content-Type: application/pkcs7-signature; name=smime.p7s\r
+Content-Transfer-Encoding: base64\r
+Content-Disposition: attachment; filename=smime.p7s\r
+\r
+MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCCfgw\r
+ggSvMIIDl6ADAgECAhEA4CPLFRKDU4mtYW56VGdrITANBgkqhkiG9w0BAQsFADBvMQswCQYDVQQG\r
+EwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFsIFRU\r
+UCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MB4XDTE0MTIyMjAw\r
+MDAwMFoXDTIwMDUzMDEwNDgzOFowgZsxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1h\r
+bmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMUEw\r
+PwYDVQQDEzhDT01PRE8gU0hBLTI1NiBDbGllbnQgQXV0aGVudGljYXRpb24gYW5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