From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86337 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.gnus.general Subject: Re: Maybe encrypt message ? Date: Tue, 24 Nov 2015 21:53:13 +0100 Message-ID: References: <878u5nfv4u.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1448398418 21995 80.91.229.3 (24 Nov 2015 20:53:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 20:53:38 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34569@lists.math.uh.edu Tue Nov 24 21:53:25 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a1KaZ-0006JO-BA for ding-account@gmane.org; Tue, 24 Nov 2015 21:53:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1a1KaY-0001We-GK; Tue, 24 Nov 2015 14:53:22 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1a1KaV-0001Vq-NP for ding@lists.math.uh.edu; Tue, 24 Nov 2015 14:53:19 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1a1KaU-00082f-BQ for ding@lists.math.uh.edu; Tue, 24 Nov 2015 14:53:19 -0600 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1a1KaS-0005eY-NQ for ding@gnus.org; Tue, 24 Nov 2015 21:53:17 +0100 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 87BD320769 for ; Tue, 24 Nov 2015 15:53:15 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 24 Nov 2015 15:53:15 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=maillard.im; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=bhjah Of1AVZp3bkex0IZIqxWyzc=; b=AQM8kpJUO9CL5pjwvfEBjhvPVDPeuTTNpP23V bvA5rZRbB1s6Xhg3kEE1ypyA+5uViFmSWTUrXMuT1T3nDhJw9WqAzxSiVRQ4LAqr CkV1qjYS7F1fwepB00bX0Vk/71HxLQRVb1ZhFqPY6vyCMv8t1xb53FOI3MRsAO4R IJB7gc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=bhjahOf1AVZp3bkex0IZIqxWyzc=; b=YLFkm 5s2Rf3XGxYyS4ZY3T02uTazsS8bc7kutkPn27ukoMDqUbdoY+fmjom5tjwkRQhDr otRdlSAp3aFIjdUTOjCFC9wUoUB1saOTP4sF3ODilDT7w2v9av7Oe+Q1xu4dYAKR R6zxqH6SpwVbmsWnjENtx0UKR2yibZhYO4c/7U= X-Sasl-enc: tF5MfwzUhEWItzBVgaWg0SybC8Ui6VoBigoSrtKsOZIL 1448398395 Original-Received: from kcals.intra.maillard.im (areims-651-1-39-129.w86-192.abo.wanadoo.fr [86.192.194.129]) by mail.messagingengine.com (Postfix) with ESMTPA id E5630C016F4 for ; Tue, 24 Nov 2015 15:53:14 -0500 (EST) User-Agent: Gnus (0.14), GNU Emacs 25.0.50.1 (x86_64-apple-darwin14.3.0) X-Home-Page: https://xavier.maillard.im X-GPG-FINGERPRINT: 9983 DCA1 1FAC 8DA7 653A F9AA BA49 09B7 8F04 DE1B X-GPG: 0xBA4909B78F04DE1B X-Accept-Language: en, fr Mail-Followup-To: ding@gnus.org In-Reply-To: <878u5nfv4u.fsf@mat.ucm.es> (Uwe Brauer's message of "Tue, 24 Nov 2015 12:18:41 +0000") X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86337 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Uwe Brauer writes: >>>> "Xavier" =3D=3D Xavier Maillard = writes: > > > Hello, > > what is the correct way to tell gnus/message to 'maybe' encrypt an = outgoing > > message ? > > > I previously set it via `message-setup-hook' by adding > > `mml-secure-message-encrypt'. For a reason I do not understand, it = encrypted > > *ALL* outgoing messages (even on mailing-lists). That's lame since = for some, I > > remember having been asked to ignore encryption for recipient I did= not have a > > public key... > > > How do you practice PGP encryption/signing in Gnus ? > > There are three possiblities. [ ... cut ... ] > - You can use have an entry in your bbdb. > For example > encrypt: smime > or > encrypt: gpg > than gnus encrypt using smime or gpg > > Or nothing gnus does not do anything. I remember that possibility now ! If I could sync my carddav with bbdb, may= be I could get back to using it. > - However if I also want to sign my message than this approach is > too restrictive. So I have a yes-o-no function in my > message-send-hook namely my-hook-encrypt-or-sign-smime > > (defun my-hook-encrypt-or-sign-smime () > (interactive) > (call-interactively 'my-select-encrypt-or-sign-smime)) > > (defun my-leave-the-TAG () > (interactive) > (message "Left the TAG intact, since it is a pgp/(mime) message.")) > > (defun my-select-encrypt-or-sign-smime (ch)=20 > (interactive "c1: encrypt, 2: encryt+sign, 3: sign 4: NO TAG 5: leave i= t: pgp/mime") > (setq ch (downcase ch)) > (call-interactively (cond ((eql ch ?1) #'my-only-encrypt-smime) > ((eql ch ?2) #'my-encrypt-and-sign-smime) > ((eql ch ?3) #'mml-secure-message-sign-smime)= =20=20=20=20=20=20=20=20=20 > ((eql ch ?4) #'my-mml-eliminate-smime-pgp-tag) > ((eql ch ?5) #'my-leave-the-TAG) > (t (error 'args-out-of-range '(1 2 3 4 5 ch))= )))) > > You could do something similar for gpg instead of smime. Isn't this too cumbersome ? For each of your outgoing message, you have to make a choice, right ? Thanks, =2D- Xavier. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJWVM45AAoJEDy08nibbhJt8r8H/3HDD0/ZmE5HktwO2/zCNmZq u4ThsblawO8SoGoAHUcNAhzJufZKwKDqMpKcjNEJitA2k2B54PDuI85YcGvx1oZ9 goGmI2f9trwLrd0X5KyyEcAoej6QLRp+pePZXKkhRCbGgXfYUHNwAX9XhPutTQU/ aNHnFqAvZALpESqeB26RhiEMPJftSUIkmNUMedAIgWkkWu1okft6rWKODI7FuPtG Lfg++wJE7sRQVgHsVEnalL3W+nM7fQexsQdHz00h9uQzLZeYi7aV+P4JeYcTn246 q8dqBbXB4nFx4wzbvxKJK8TOVvk/WyyXSNeT3Y5YLUTYK9HNjdFv6vSXon7RhxY= =6s+V -----END PGP SIGNATURE----- --=-=-=--