From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hikaru Ichijyo Newsgroups: gmane.emacs.help Subject: selection of GPG key in Gnus Date: Mon, 09 Jan 2017 22:45:49 -0600 Organization: UN Spacy Message-ID: <8xxr34bjzeq.fsf@village.keycorner.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484023844 920 195.159.176.226 (10 Jan 2017 04:50:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2017 04:50:44 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 10 05:50:32 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQoOB-00071W-Hd for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jan 2017 05:50:27 +0100 Original-Received: from localhost ([::1]:44733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQoOF-0004au-Jl for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2017 23:50:31 -0500 X-Received: by 10.157.37.145 with SMTP id q17mr419216ota.54.1484023550293; Mon, 09 Jan 2017 20:45:50 -0800 (PST) Original-Path: usenet.stanford.edu!r185no1128778ita.0!news-out.google.com!m27ni7674qtf.1!nntp.google.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help Cancel-Lock: sha1:CCqvU/9sqh6ddASIL7NvSaG7axY= Original-Lines: 34 Original-NNTP-Posting-Host: eb7a2302.news.astraweb.com Original-X-Trace: DXC=^LfjMAe6A=^eIcSKiG^o_UL?0kYOcDh@Z18J:flTQG4UHIPDifKVMe^l23]GVn`ZmVo=EIjJ5b; WSC[]MRAPn@SSmT:_BHaKU_VD; THD4oE?cY X-Received-Bytes: 2295 X-Received-Body-CRC: 1092562211 Original-Xref: usenet.stanford.edu gnu.emacs.help:219047 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112073 Archived-At: This is a Gnus question, but I've already asked in gnu.emacs.gnus. Then, I noticed that no one has had a question answered in that group for three months. There are probably some people here who use Gnus. I'd like to have selection of a default GPG key to use for signing and encrypting to happen automatically depending on the group I'm in. I'd also like to be able to sign by default (using the correct key) in most mail groups, and never sign/encrypt at all in newsgroups. Basically, what I'd like is some sort of gnus-posting-styles mechanism to control PGP behavior...or at the very least, something in the group's customize menu. The more I search online, the more I've gotten the impression Gnus can't do anything like that. I did find a message from over ten years ago that mentioned using gnus-posting-styles to specify a X-PGP header for a group that selected the right key. That sounds great...but does that really work? Is it supposed to work, or would that qualify as a "dumb hack" (which may not be reliable)? Does Gnus actually invoke GPG in response to such user-inserted SMTP headers? I never saw any other source of information on that. Since Gnus aims to be a single message post/reply facility for regular mail, mailing lists, Usenet newsgroups, Gmane style BBS's, etc...it doesn't seem right that it would want you to have a one-size-fits-all setting for your PGP behavior everywhere, does it? -- He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty, he establishes a precedent that will reach to himself. --Thomas Paine