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