--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 7EE3D6DE0C81\r
+ for <notmuch@notmuchmail.org>; Mon, 14 Dec 2015 13:27:27 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.691\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.691 tagged_above=-999 required=5 tests=[AWL=0.039, \r
+ SPF_NEUTRAL=0.652] 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 qa5_oaCEEWPD for <notmuch@notmuchmail.org>;\r
+ Mon, 14 Dec 2015 13:27:25 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id E271B6DE0231\r
+ for <notmuch@notmuchmail.org>; Mon, 14 Dec 2015 13:27:24 -0800 (PST)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id BA59510005A;\r
+ Mon, 14 Dec 2015 23:27:40 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [Patch v3 4/8] test: initial tests for S/MIME and notmuch-emacs\r
+In-Reply-To: <87h9jkajct.fsf@tesseract.cs.unb.ca>\r
+References: <1450100337-31655-1-git-send-email-david@tethera.net>\r
+ <1450100337-31655-5-git-send-email-david@tethera.net>\r
+ <87h9jkajct.fsf@tesseract.cs.unb.ca>\r
+User-Agent: Notmuch/0.21+32~g73439f8 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Mon, 14 Dec 2015 23:27:40 +0200\r
+Message-ID: <m27fkgwwj7.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Mon, 14 Dec 2015 21:27:27 -0000\r
+\r
+On Mon, Dec 14 2015, David Bremner <david@tethera.net> wrote:\r
+\r
+> David Bremner <david@tethera.net> writes:\r
+>\r
+>> Test the ability of notmuch-mua-mail to send S/MIME signed (and\r
+>> encrypted) messages; this really relies on existing functionality in\r
+>> message-mode.\r
+>>\r
+>> The generated keys and messages will later be useful for testing the\r
+>> notmuch CLI.\r
+>> ---\r
+>> test/T355-smime.sh | 42 +++++++++++++++++++++++++++++++++++++\r
+>> test/smime/README | 7 +++++++\r
+>> test/smime/key+cert.pem | 56 +++++++++++++++++++++++++++++++++++++++++++++++++\r
+>> test/smime/test.crt | 19 +++++++++++++++++\r
+>> test/test-lib.el | 10 +++++++++\r
+>> test/test-lib.sh | 1 +\r
+>> 6 files changed, 135 insertions(+)\r
+>> create mode 100755 test/T355-smime.sh\r
+>> create mode 100644 test/smime/README\r
+>> create mode 100644 test/smime/key+cert.pem\r
+>> create mode 100644 test/smime/test.crt\r
+>>\r
+>> diff --git a/test/T355-smime.sh b/test/T355-smime.sh\r
+>> new file mode 100755\r
+>> index 0000000..e3419d6\r
+>> --- /dev/null\r
+>> +++ b/test/T355-smime.sh\r
+>> @@ -0,0 +1,42 @@\r
+>> +#!/usr/bin/env bash\r
+>> +\r
+>> +test_description='S/MIME signature verification and decryption'\r
+>> +. ./test-lib.sh\r
+>\r
+> Apparently this needs\r
+>\r
+> unset GPG_AGENT_INFO\r
+>\r
+> at the beginning to avoid getting confused by a potential pre-2.1\r
+> gpg-agent.\r
+\r
+And, as the first patch series was very old it did not have this:\r
+\r
+. ./test-lib.sh || exit 1\r
+\r
+\r
+Tomi\r
+\r