1 Return-Path: <dme@dme.org>
\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 2B39A421189
\r
6 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 07:39:58 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\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 HJcTxvlScGaC for <notmuch@notmuchmail.org>;
\r
16 Tue, 17 Jan 2012 07:39:57 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 7FD15421181 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 07:39:57 -0800
\r
22 Received: by wgbdr13 with SMTP id dr13so1379416wgb.2
\r
23 for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 07:39:56 -0800 (PST)
\r
24 Received: by 10.216.131.76 with SMTP id l54mr7503312wei.34.1326814796179;
\r
25 Tue, 17 Jan 2012 07:39:56 -0800 (PST)
\r
26 Received: from hotblack-desiato.hh.sledj.net
\r
27 (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])
\r
28 by mx.google.com with ESMTPS id d9sm17488765wiy.2.2012.01.17.07.39.54
\r
29 (version=TLSv1/SSLv3 cipher=OTHER);
\r
30 Tue, 17 Jan 2012 07:39:55 -0800 (PST)
\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)
\r
32 id 39C20A0048; Tue, 17 Jan 2012 15:39:53 +0000 (GMT)
\r
33 To: Antoine =?utf-8?Q?Beaupr=C3=A9?= <anarcat@anarcat.ath.cx>, Gregor
\r
34 Zattler <telegraph@gmx.net>, Jameson Graef Rollins
\r
35 <jrollins@finestructure.net>, Gregor Zattler <telegraph@gmx.net>, Notmuch
\r
36 Mail <notmuch@notmuchmail.org>
\r
37 Subject: Re: Emacs: Crypto: How to get automatic encryption?
\r
38 In-Reply-To: <87pqejj5nl.fsf@marcos.anarcat.ath.cx>
\r
39 References: <87pqejj5nl.fsf@marcos.anarcat.ath.cx>
\r
40 User-Agent: Notmuch/0.11+64~g42e8f66 (http://notmuchmail.org) Emacs/24.0.92.1
\r
41 (x86_64-pc-linux-gnu)
\r
42 From: David Edmondson <dme@dme.org>
\r
43 Date: Tue, 17 Jan 2012 15:39:52 +0000
\r
44 Message-ID: <cun1uqypcc7.fsf@hotblack-desiato.hh.sledj.net>
\r
46 Content-Type: multipart/signed; boundary="=-=-=";
\r
47 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Tue, 17 Jan 2012 15:39:58 -0000
\r
63 Content-Type: text/plain
\r
65 > (if (and force (re-search-forward "<#secure [> >]*>\n" nil t))
\r
66 > (replace-match "" nil nil))
\r
67 > ;; If we can encrypt, do so, else just sign.
\r
68 > (if (or force (not (re-search-forward "<#secure [> >]*>\n" nil t)))
\r
70 Is this second test for `force' necessary? If `force' is set then you'll
\r
71 remove the <#secure..> just above, so it will not be found here.
\r
73 > (if (anarcat/message-guess-encryption)
\r
74 > (insert "<#secure method=pgpmime mode=signencrypt>\n")
\r
75 > (insert "<#secure method=pgpmime mode=sign>\n"))
\r
79 Content-Type: application/pgp-signature
\r
81 -----BEGIN PGP SIGNATURE-----
\r
82 Version: GnuPG v1.4.11 (GNU/Linux)
\r
84 iEYEARECAAYFAk8VlkkACgkQaezQq/BJZRb7BgCeJjT9Ki4tZLLWiAko+Sj2X2AV
\r
85 sFIAnRczaRIj8Cr6PiBCseidEkVXkQOU
\r
87 -----END PGP SIGNATURE-----
\r