Smime signature verification in Notmuch - Emacs
authorBaptiste <bateast@bat.fr.eu.org>
Mon, 3 Mar 2014 17:29:23 +0000 (18:29 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:00:19 +0000 (10:00 -0800)
90/a0d221bdc4d9421994c6340bf550464eb3105e [new file with mode: 0644]

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