Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 5c / 606f9ea3bc9225dc20b0f46bf095f7dbe27f17
1 Return-Path: <jrollins@finestructure.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id D4075476B99\r
6         for <notmuch@notmuchmail.org>; Mon,  8 Mar 2010 08:47:59 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -4.668\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-4.668 tagged_above=-999 required=5 tests=[AWL=0.442,\r
12         BAYES_05=-1.11, RCVD_IN_DNSWL_MED=-4] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id RbuoIUV4J6xT for <notmuch@notmuchmail.org>;\r
16         Mon,  8 Mar 2010 08:47:59 -0800 (PST)\r
17 Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8])\r
18         by olra.theworths.org (Postfix) with ESMTP id 11737476B75\r
19         for <notmuch@notmuchmail.org>; Mon,  8 Mar 2010 08:47:58 -0800 (PST)\r
20 Received: from servo.finestructure.net (geco.phys.columbia.edu\r
21         [128.59.170.159])\r
22         (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
23         by brinza.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o28GlgN9008793\r
24         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
25         Mon, 8 Mar 2010 11:47:43 -0500 (EST)\r
26 Received: from jrollins by servo.finestructure.net with local (Exim 4.71)\r
27         (envelope-from <jrollins@finestructure.net>)\r
28         id 1Nog7K-0007cy-FV; Mon, 08 Mar 2010 11:47:42 -0500\r
29 From: Jameson Rollins <jrollins@finestructure.net>\r
30 To: Sebastian Spaeth <Sebastian@SSpaeth.de>, Notmuch development list\r
31         <notmuch@notmuchmail.org>\r
32 In-Reply-To: <87aaujyqvx.fsf@SSpaeth.de>\r
33 References: <87aaujyqvx.fsf@SSpaeth.de>\r
34 Date: Mon, 08 Mar 2010 11:47:39 -0500\r
35 Message-ID: <87pr3erc9g.fsf@servo.finestructure.net>\r
36 MIME-Version: 1.0\r
37 Content-Type: multipart/signed; boundary="=-=-=";\r
38         micalg=pgp-sha256; protocol="application/pgp-signature"\r
39 X-No-Spam-Score: Local\r
40 X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8\r
41 Subject: Re: [notmuch] gpg decryption\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Mon, 08 Mar 2010 16:48:00 -0000\r
55 \r
56 --=-=-=\r
57 Content-Transfer-Encoding: quoted-printable\r
58 \r
59 On Mon, 08 Mar 2010 12:49:54 +0100, "Sebastian Spaeth" <Sebastian@SSpaeth.d=\r
60 e> wrote:\r
61 > My bank frequently sends me transactions as an inline-armored gpg\r
62 > encrypted text.\r
63 \r
64 Wow!  That's incredible.  I assume this is a German Bank?  Only in my\r
65 wildest fantasies could I even conceive of such a thing possibly\r
66 happening, especially in the US.  I want to use your bank.\r
67 \r
68 > So I added the below 2 lines in my .emacs and added this function to\r
69 > the list of notmuch-show-hook functions:\r
70 \r
71 > (defun spaetz/decrypt ()\r
72 >   (epa-decrypt-armor-in-region (point-min) (point-max)))\r
73 >=20\r
74 > Despite warning in the docs that this function should not be called from\r
75 > elisp programs directly, it works just fine for me. The only annoyance\r
76 > is that the function asks "Should I replace the current text (y/n)" in\r
77 > the status bar whenever it detects gpg text.\r
78 > It works for me and is a nice proof-of-concept which happens to solve my =\r
79 bank\r
80 > account itch, but definitely needs improvement:\r
81 \r
82 Do I've had problems with notmuch if I answer "yes" to the replace\r
83 current text question.  It appears to actually modify the file being\r
84 decrypted, which in this case is the actual mail message, and that seems\r
85 to cause problems for notmuch.  I actually want the text to be replaced,\r
86 but just in the buffer, and not in the file.  I haven't looked into this\r
87 yet though.\r
88 \r
89 We really need to get some better PGP/MIME support in the emacs UI.\r
90 Unfortunately I just haven't had the time to work on it.  I'm at least\r
91 glad that other are struggling with it as well, so it's not just me.\r
92 \r
93 jamie.\r
94 \r
95 --=-=-=\r
96 Content-Type: application/pgp-signature\r
97 \r
98 -----BEGIN PGP SIGNATURE-----\r
99 Version: GnuPG v1.4.10 (GNU/Linux)\r
100 \r
101 iQIcBAEBCAAGBQJLlSorAAoJEO00zqvie6q8pmUQAJ6g6Ztjo2ACJA5qOjg/LtFl\r
102 v4FdDFhDjhRoua3DRfaqL6TSGpqBqY+KDtYFyw3Q6h/xEdpUzjvd9Uby6jAwAyGY\r
103 PVat0tD0vpRg3V2vw+IizP/Rp/TiL7kVicpkfAAjyx+SFzV9aU2ZLxvx3uPAyTXT\r
104 +nj7VcSCqI4MihMwGvME3jo+TeDxIh++v2uVwfaaG/jRUaObWLL5P/aTewKaU3gj\r
105 KH9BFAefF+Gu04G5BNusSf1AcmOHKL5iaLf2/oe9NPFW9UfTNZr7FtvCq023S9Cb\r
106 jAwErZg4XlYTqhHKF1TMw071tEklqZ4KyD7Qru5jcvhzMmbLBGdEPCicXHTXSYgu\r
107 gNBUyP2T+hnKLbEq9UAy03t9IC4yDjiNhUcNnzzO4ruPj1AMVFJgETLsdmFMGoBo\r
108 I0rs0jjW6ZhEqFBWCwSTPX6K0hNLtQ/C+lpFX0G9cRYk0jaP8RN6juvLrXMqqFKD\r
109 4cA0qdKFW4ip2YEkkJerI9mnMQ0sFro0ApEGN5zo4K9OXYVr4+uZhrybul3kv52i\r
110 460UDRNcxDK5ixtJISoQnTW2ePU9ay34AfnDC9w7CTILIx2B7NcEAH8A5DuxZ0mO\r
111 m2wnEDmMSX9taP0xEOEr9k90t1JWvA9cDIkaNvvzvdlOv05nRV5AuBkJ4U59Dxve\r
112 yBje0/XaNPaiywfnHl5w\r
113 =1Zyg\r
114 -----END PGP SIGNATURE-----\r
115 --=-=-=--\r