From: Baptiste Date: Mon, 3 Mar 2014 17:29:23 +0000 (+0100) Subject: Smime signature verification in Notmuch - Emacs X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=396ce5bcc3c29164e48b93ce98adbf82c6c014ce;p=notmuch-archives.git Smime signature verification in Notmuch - Emacs --- diff --git a/90/a0d221bdc4d9421994c6340bf550464eb3105e b/90/a0d221bdc4d9421994c6340bf550464eb3105e new file mode 100644 index 000000000..e9e94f9b4 --- /dev/null +++ b/90/a0d221bdc4d9421994c6340bf550464eb3105e @@ -0,0 +1,183 @@ +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 532D8431FBD + for ; Mon, 3 Mar 2014 09:36:13 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.001 +X-Spam-Level: +X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 + tests=[HTML_MESSAGE=0.001] 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 dZkzceYvpiFa for ; + Mon, 3 Mar 2014 09:36:01 -0800 (PST) +X-Greylist: delayed 319 seconds by postgrey-1.32 at olra; + Mon, 03 Mar 2014 09:36:01 PST +Received: from mx1a.lautre.net (mx1a.lautre.net [80.67.160.71]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 21FAE431FBC + for ; Mon, 3 Mar 2014 09:36:01 -0800 (PST) +Received: from arch-vm (unknown [109.21.163.7]) + (using TLSv1 with cipher AES128-SHA (128/128 bits)) + (No client certificate requested) + (Authenticated sender: bateast@bat.fr.eu.org) + by mx1a.lautre.net (Postfix) with ESMTPSA id 96C8540F88 + for ; Mon, 3 Mar 2014 18:30:38 +0100 (CET) +From: Baptiste +To: notmuch@notmuchmail.org +Subject: Smime signature verification in Notmuch - Emacs +Organization: bat.fr.eu.org +User-Agent: Notmuch/0.17+81~g718d58a (http://notmuchmail.org) Emacs/24.3.50.2 + (i686-pc-linux-gnu) +Date: Mon, 03 Mar 2014 18:29:23 +0100 +Message-ID: <87y50r42do.fsf@bat.fr.eu.org> +MIME-Version: 1.0 +Content-Type: multipart/alternative; boundary="=-=-=" +X-Mailman-Approved-At: Sun, 09 Mar 2014 01:23:57 -0800 +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, 03 Mar 2014 17:36:13 -0000 + +--=-=-= +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable + +Hi,=20 + +I made a little ~Emacs~ advice for ~notmuch-show-insert-part-multipart/sign= +ed~ to deal with mails signed with /SMIME/ mechanism. It calls /openssl/ to= + create missing :sigstatus. + +Here it is=C2=A0: [[https://github.com/bateast/notmuch-openssl]] +(it is an org-file, in ~Emacs~, use /org-babel-tangle/ on it to extract the= + .el). + +You are welcomed to make any comment. + +Thanks, + +--=20 + +: ~^v^~ Bat + +--=-=-= +Content-Type: multipart/related; boundary="==-=-=" + +--==-=-= +Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; + micalg="sha1"; boundary="----7255D4F2A349A67769A52D2DB70D3A55" + +This is an S/MIME signed message + +------7255D4F2A349A67769A52D2DB70D3A55 +Content-Type: text/html; charset=utf-8 +Content-Transfer-Encoding: quoted-printable + +

+Hi,
+

+ +

+I made a little Emacs advice for notmuch-show-insert-par= +t-multipart/signed to deal with mails signed with SMIME mecha= +nism. It calls openssl to create missing :sigstatus.
+

+ +

+Here it is=C2=A0: ht= +tps://github.com/bateast/notmuch-openssl
+(it is an org-file, in Emacs, use org-babel-tangle on i= +t to extract the .el).
+

+ +

+You are welcomed to make any comment.
+

+ +

+Thanks,
+

+ +

+–
+

+ +
+~^v^~ Bat
+
+ +------7255D4F2A349A67769A52D2DB70D3A55 +Content-Type: application/x-pkcs7-signature; name="smime.p7s" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7s" + +MIIJGwYJKoZIhvcNAQcCoIIJDDCCCQgCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3 +DQEHAaCCBkwwggZIMIIFMKADAgECAgMI9O0wDQYJKoZIhvcNAQEFBQAwgYwxCzAJ +BgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1 +cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFydENv +bSBDbGFzcyAxIFByaW1hcnkgSW50ZXJtZWRpYXRlIENsaWVudCBDQTAeFw0xNDAy +MTExOTAxNTZaFw0xNTAyMTIyMjAxMThaMGExGTAXBgNVBA0TEEY2NkE5OGZkb2FN +Q0k4Qk4xHjAcBgNVBAMMFWJhdGVhc3RAYmF0LmZyLmV1Lm9yZzEkMCIGCSqGSIb3 +DQEJARYVYmF0ZWFzdEBiYXQuZnIuZXUub3JnMIIBIjANBgkqhkiG9w0BAQEFAAOC +AQ8AMIIBCgKCAQEAyZVzZ9wZRF2ws0rxniwRZ66Eyd+G98Cx61SPc7X1siZFsdwt +yF+L2KI5tDIBt3uhbM5uLSNQIxysz2iDyLWxo7+u+Ot5MYOu3BCCcWyrqHJMErZG +dWte3HlyN2suzK9j4NDwHippcgCH8ImRJ/sPH+Q9tRnr2Y6fs0LH4fH9WCrr/kR9 +kniUSnyVL5iW06ZbIS+6Pwd4VIkB6ctaq5Zro3HA75alsW6qZ5QTwJKPb4zAKMlm +jsbQqd8VtBMjVL9FqDTIGBfvCtsSY3x8WwETw0O0ks6V3KCe3qD9o7bt66QmcH6u +yFLnFwBBWl53q6Uj+f9HyDN6oKlQMEVykDs0KwIDAQABo4IC2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