Re: [notmuch] OpenPGP support
authorJameson Graef Rollins <jrollins@finestructure.net>
Thu, 26 Nov 2009 18:31:05 +0000 (13:31 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:43 +0000 (09:35 -0800)
6f/d9755cd5d2a1d363515c51f3e8d08b79f11bd8 [new file with mode: 0644]

diff --git a/6f/d9755cd5d2a1d363515c51f3e8d08b79f11bd8 b/6f/d9755cd5d2a1d363515c51f3e8d08b79f11bd8
new file mode 100644 (file)
index 0000000..cde6cd4
--- /dev/null
@@ -0,0 +1,118 @@
+Return-Path: <jrollins@finestructure.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 C80E0431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 26 Nov 2009 10:30:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 aSiTm9JVlqxH for <notmuch@notmuchmail.org>;\r
+       Thu, 26 Nov 2009 10:30:49 -0800 (PST)\r
+Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7])\r
+       by olra.theworths.org (Postfix) with ESMTP id 665A9431FC4\r
+       for <notmuch@notmuchmail.org>; Thu, 26 Nov 2009 10:30:48 -0800 (PST)\r
+Received: from servo.finestructure.net (cpe-72-227-128-66.nyc.res.rr.com\r
+       [72.227.128.66])\r
+       (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
+       by tarap.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id nAQIUll2001479\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
+       for <notmuch@notmuchmail.org>; Thu, 26 Nov 2009 13:30:47 -0500 (EST)\r
+Received: from jrollins by servo.finestructure.net with local (Exim 4.69)\r
+       (envelope-from <jrollins@finestructure.net>) id 1NDj7R-0006ev-Np\r
+       for notmuch@notmuchmail.org; Thu, 26 Nov 2009 13:31:05 -0500\r
+Date: Thu, 26 Nov 2009 13:31:05 -0500\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: notmuch@notmuchmail.org\r
+Message-ID: <20091126183105.GA8745@finestructure.net>\r
+References: <20091123130009.GA31695@finestructure.net>\r
+       <20091126060132.GA5875@finestructure.net>\r
+       <87iqcxkbla.fsf@linux.vnet.ibm.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha256;\r
+       protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/"\r
+Content-Disposition: inline\r
+In-Reply-To: <87iqcxkbla.fsf@linux.vnet.ibm.com>\r
+User-Agent: Mutt/1.5.20 (2009-06-14)\r
+X-No-Spam-Score: Local\r
+X-Scanned-By: MIMEDefang 2.65 on 128.59.29.7\r
+Subject: Re: [notmuch] OpenPGP support\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Thu, 26 Nov 2009 18:30:51 -0000\r
+\r
+\r
+--pWyiEgJYm5f9v55/\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+\r
+On Thu, Nov 26, 2009 at 12:38:01PM +0530, Aneesh Kumar K. V wrote:\r
+> message-mode can sign the message using C-c RET C-s\r
+> which is mml-secure-message-sign\r
+\r
+Thanks so much, Aneesh!  That's great.  I was not aware of those\r
+abilities in mml mode.  I just noticed that epa-mail-{sign,encrypt}\r
+can do this as well, but much less cleanly.  So the mml commands are\r
+exactly what I was looking for.  Well, at least exactly *half* of what\r
+I was looking for...\r
+\r
+So the issue now is verifying/decrypting signed/encrypted received\r
+mail.  Playing around with it a bit more, I've found a couple of\r
+interesting things.  If I'm viewing an encrypted message with\r
+notmuch-show, and if I type 'v' (notmuch-show-view-all-mime-parts), I\r
+get the full message view, and then a prompt to:\r
+\r
+Decrypt (PGP) part? (y or n)\r
+\r
+Typing 'y', I see that there is some communication with my gpg agent\r
+(I get a gpg agent password prompt), but then once the password is\r
+entered, nothing happens, ie. I don't see the decrypted part.  I'm\r
+trying to figure out where the problem is here.  Presumably something\r
+is failing to capture the output of the gpg decryption.  I'm not clear\r
+either about what mode is trying to do this decryption.  Is this epa?\r
+\r
+Unfortunately nothing at all happens when I hit 'v' when viewing a\r
+message that has OpenPGP signature attachment.\r
+\r
+I also just discovered that there are some\r
+epa-mail-{sign,verify,{de,en}crypt} commands that work similar to (but\r
+not as cleanly as) the mml commands.  Unfortunately none of this is\r
+very coherent.  And some sort of integration with notmuch-show would\r
+be sweet.\r
+\r
+jamie.\r
+\r
+--pWyiEgJYm5f9v55/\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: Digital signature\r
+Content-Disposition: attachment\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJLDslmAAoJEO00zqvie6q8BcQP+wREJ/m9sT7MR/9Ja3+9+u8j\r
+Dn50yJCpmvW3ehjqF/MOBkmMaRLWIPIe85JG4YK28nnAnD4eYpVPqyTnVBdUQQXg\r
+9B/bF+nA+I0JAc3IYX8hfVI/d8eh+MmusJGQENZtmCMqQfqkNqZameIUGOPDB7lC\r
+ll8qW7IQbmBJHXkF3QYFWmLAcLiK1lhJik23AVsYOEWwloPILSPimmjZl/wdTSLt\r
+QORZQ28JhpwbXQwo/B0lIoy+Gux8YjP3oNQk7cclk71R+/EQHsXYes0TjFuU+twp\r
+CUh45AM9UT6LsJibzvh8mmNqlGqyse218QmUoCj9gcp0BrbfXMn/66aGiIHXa94K\r
+eNnuaLOkUOzPvyqP8XUbz4UgLstc+Maw868wNvbzoRZAMRKi6p8crkoHo/cAhS+7\r
+9Ab16qsA0wot3lOo1wNalMb0k+GvmxfFPeF8B+cWrB49H0aOxqCbRZ5dK+XLtM0M\r
+JOO0d6iZevZoI7DoZYz9HiEGeXP5G5Ae4WljV2vhgJNTKUwwJN/28Lfs5u7IJr0v\r
+CE/nFIo9caA1sSzuQolYVN710m7vqeHDZ+fIEPVGFav79UvhVNzmSu3+VOtf5+gv\r
+fxYxWoIGPb6o3ssMKCeLxCbAOmfbyLA8IeYAC+VEFfX/98cYXNHeUB8lW7ppqyZw\r
+Sv9kE28CL07L6rulw8N2\r
+=GWQ0\r
+-----END PGP SIGNATURE-----\r
+\r
+--pWyiEgJYm5f9v55/--\r