Re: [notmuch] gpg decryption
authorJameson Rollins <jrollins@finestructure.net>
Mon, 8 Mar 2010 16:47:39 +0000 (11:47 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:20 +0000 (09:36 -0800)
5c/606f9ea3bc9225dc20b0f46bf095f7dbe27f17 [new file with mode: 0644]

diff --git a/5c/606f9ea3bc9225dc20b0f46bf095f7dbe27f17 b/5c/606f9ea3bc9225dc20b0f46bf095f7dbe27f17
new file mode 100644 (file)
index 0000000..3308b1b
--- /dev/null
@@ -0,0 +1,115 @@
+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 D4075476B99\r
+       for <notmuch@notmuchmail.org>; Mon,  8 Mar 2010 08:47:59 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -4.668\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-4.668 tagged_above=-999 required=5 tests=[AWL=0.442,\r
+       BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4] autolearn=ham\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 RbuoIUV4J6xT for <notmuch@notmuchmail.org>;\r
+       Mon,  8 Mar 2010 08:47:59 -0800 (PST)\r
+Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8])\r
+       by olra.theworths.org (Postfix) with ESMTP id 11737476B75\r
+       for <notmuch@notmuchmail.org>; Mon,  8 Mar 2010 08:47:58 -0800 (PST)\r
+Received: from servo.finestructure.net (geco.phys.columbia.edu\r
+       [128.59.170.159])\r
+       (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
+       by brinza.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o28GlgN9008793\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Mon, 8 Mar 2010 11:47:43 -0500 (EST)\r
+Received: from jrollins by servo.finestructure.net with local (Exim 4.71)\r
+       (envelope-from <jrollins@finestructure.net>)\r
+       id 1Nog7K-0007cy-FV; Mon, 08 Mar 2010 11:47:42 -0500\r
+From: Jameson Rollins <jrollins@finestructure.net>\r
+To: Sebastian Spaeth <Sebastian@SSpaeth.de>, Notmuch development list\r
+       <notmuch@notmuchmail.org>\r
+In-Reply-To: <87aaujyqvx.fsf@SSpaeth.de>\r
+References: <87aaujyqvx.fsf@SSpaeth.de>\r
+Date: Mon, 08 Mar 2010 11:47:39 -0500\r
+Message-ID: <87pr3erc9g.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-No-Spam-Score: Local\r
+X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8\r
+Subject: Re: [notmuch] gpg decryption\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, 08 Mar 2010 16:48:00 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Mon, 08 Mar 2010 12:49:54 +0100, "Sebastian Spaeth" <Sebastian@SSpaeth.d=\r
+e> wrote:\r
+> My bank frequently sends me transactions as an inline-armored gpg\r
+> encrypted text.\r
+\r
+Wow!  That's incredible.  I assume this is a German Bank?  Only in my\r
+wildest fantasies could I even conceive of such a thing possibly\r
+happening, especially in the US.  I want to use your bank.\r
+\r
+> So I added the below 2 lines in my .emacs and added this function to\r
+> the list of notmuch-show-hook functions:\r
+\r
+> (defun spaetz/decrypt ()\r
+>   (epa-decrypt-armor-in-region (point-min) (point-max)))\r
+>=20\r
+> Despite warning in the docs that this function should not be called from\r
+> elisp programs directly, it works just fine for me. The only annoyance\r
+> is that the function asks "Should I replace the current text (y/n)" in\r
+> the status bar whenever it detects gpg text.\r
+> It works for me and is a nice proof-of-concept which happens to solve my =\r
+bank\r
+> account itch, but definitely needs improvement:\r
+\r
+Do I've had problems with notmuch if I answer "yes" to the replace\r
+current text question.  It appears to actually modify the file being\r
+decrypted, which in this case is the actual mail message, and that seems\r
+to cause problems for notmuch.  I actually want the text to be replaced,\r
+but just in the buffer, and not in the file.  I haven't looked into this\r
+yet though.\r
+\r
+We really need to get some better PGP/MIME support in the emacs UI.\r
+Unfortunately I just haven't had the time to work on it.  I'm at least\r
+glad that other are struggling with it as well, so it's not just me.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJLlSorAAoJEO00zqvie6q8pmUQAJ6g6Ztjo2ACJA5qOjg/LtFl\r
+v4FdDFhDjhRoua3DRfaqL6TSGpqBqY+KDtYFyw3Q6h/xEdpUzjvd9Uby6jAwAyGY\r
+PVat0tD0vpRg3V2vw+IizP/Rp/TiL7kVicpkfAAjyx+SFzV9aU2ZLxvx3uPAyTXT\r
++nj7VcSCqI4MihMwGvME3jo+TeDxIh++v2uVwfaaG/jRUaObWLL5P/aTewKaU3gj\r
+KH9BFAefF+Gu04G5BNusSf1AcmOHKL5iaLf2/oe9NPFW9UfTNZr7FtvCq023S9Cb\r
+jAwErZg4XlYTqhHKF1TMw071tEklqZ4KyD7Qru5jcvhzMmbLBGdEPCicXHTXSYgu\r
+gNBUyP2T+hnKLbEq9UAy03t9IC4yDjiNhUcNnzzO4ruPj1AMVFJgETLsdmFMGoBo\r
+I0rs0jjW6ZhEqFBWCwSTPX6K0hNLtQ/C+lpFX0G9cRYk0jaP8RN6juvLrXMqqFKD\r
+4cA0qdKFW4ip2YEkkJerI9mnMQ0sFro0ApEGN5zo4K9OXYVr4+uZhrybul3kv52i\r
+460UDRNcxDK5ixtJISoQnTW2ePU9ay34AfnDC9w7CTILIx2B7NcEAH8A5DuxZ0mO\r
+m2wnEDmMSX9taP0xEOEr9k90t1JWvA9cDIkaNvvzvdlOv05nRV5AuBkJ4U59Dxve\r
+yBje0/XaNPaiywfnHl5w\r
+=1Zyg\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r