Re: Emacs: Crypto: How to get automatic encryption?

Subject: Re: Emacs: Crypto: How to get automatic encryption?

Date: Tue, 17 Jan 2012 15:39:52 +0000

To: Antoine Beaupré, Gregor Zattler, Jameson Graef Rollins, Gregor Zattler, Notmuch Mail

Cc:

From: David Edmondson


>        (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"))
> 	 )
part-000.sig (application/pgp-signature)

Thread: