From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2B39A421189 for ; Tue, 17 Jan 2012 07:39:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 HJcTxvlScGaC for ; Tue, 17 Jan 2012 07:39:57 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7FD15421181 for ; Tue, 17 Jan 2012 07:39:57 -0800 (PST) Received: by wgbdr13 with SMTP id dr13so1379416wgb.2 for ; Tue, 17 Jan 2012 07:39:56 -0800 (PST) Received: by 10.216.131.76 with SMTP id l54mr7503312wei.34.1326814796179; Tue, 17 Jan 2012 07:39:56 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id d9sm17488765wiy.2.2012.01.17.07.39.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jan 2012 07:39:55 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 39C20A0048; Tue, 17 Jan 2012 15:39:53 +0000 (GMT) To: Antoine =?utf-8?Q?Beaupr=C3=A9?= , Gregor Zattler , Jameson Graef Rollins , Gregor Zattler , Notmuch Mail Subject: Re: Emacs: Crypto: How to get automatic encryption? In-Reply-To: <87pqejj5nl.fsf@marcos.anarcat.ath.cx> References: <87pqejj5nl.fsf@marcos.anarcat.ath.cx> User-Agent: Notmuch/0.11+64~g42e8f66 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Tue, 17 Jan 2012 15:39:52 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Tue, 17 Jan 2012 15:39:58 -0000 --=-=-= Content-Type: text/plain > (if (and force (re-search-forward "<#secure [> >]*>\n" nil t)) > (replace-match "" nil nil)) > ;; If we can encrypt, do so, else just sign. > (if (or force (not (re-search-forward "<#secure [> >]*>\n" nil t))) Is this second test for `force' necessary? If `force' is set then you'll remove the <#secure..> just above, so it will not be found here. > (if (anarcat/message-guess-encryption) > (insert "<#secure method=pgpmime mode=signencrypt>\n") > (insert "<#secure method=pgpmime mode=sign>\n")) > ) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8VlkkACgkQaezQq/BJZRb7BgCeJjT9Ki4tZLLWiAko+Sj2X2AV sFIAnRczaRIj8Cr6PiBCseidEkVXkQOU =bWNj -----END PGP SIGNATURE----- --=-=-=--