From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18485 Path: news.gmane.org!.POSTED!not-for-mail From: Hikaru Ichijyo Newsgroups: gmane.emacs.gnus.user Subject: autoselect GPG key for signing by group Date: Fri, 30 Dec 2016 08:49:06 -0600 Organization: UN Spacy Message-ID: <8xxbmvtlbfh.fsf@village.keycorner.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1483109417 10098 195.159.176.226 (30 Dec 2016 14:50:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2016 14:50:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 30 15:50:13 2016 Return-path: Envelope-to: gegu-info-gnus-english@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 1cMyVQ-0000yM-2T for gegu-info-gnus-english@m.gmane.org; Fri, 30 Dec 2016 15:50:04 +0100 Original-Received: from localhost ([::1]:40165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMyVU-0006wX-RN for gegu-info-gnus-english@m.gmane.org; Fri, 30 Dec 2016 09:50:08 -0500 X-Received: by 10.237.32.74 with SMTP id 68mr11470511qta.79.1483109347515; Fri, 30 Dec 2016 06:49:07 -0800 (PST) Original-Path: usenet.stanford.edu!d45no1148759qta.0!news-out.google.com!j8ni14193qtc.0!nntp.google.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Cancel-Lock: sha1:mHv/VtUiqIh2Q5cGim3jOz7Ad/o= Original-Lines: 22 Original-NNTP-Posting-Host: bbd4bf8d.news.astraweb.com Original-X-Trace: DXC=lQLQ5B2iWMa:LXj0CA`3KmL?0kYOcDh@jZ@C; D0CEVQ`=H4TLma<=PkG`^cI\5_bkno=EIjJ5b; WcC[]MRAPn@ScmT:_BHaKU_fGeGonX^_hGi X-Received-Bytes: 1618 X-Received-Body-CRC: 189154548 Original-Xref: usenet.stanford.edu gnu.emacs.gnus:89521 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18485 Archived-At: I would like to sign/decrypt messages using one key in some groups, using a different key in other groups, and in still other groups, not sign/decrypt at all. I have most such per-group preferences for other non-encryption related things setup in my ~/.gnus.el using the gnus-posting-styles mechanism, but since that seems to mostly just set variables (and not run commands), I'm not really sure what I would put there to do something like this. Most people seem to invoke GPG signing like this (assuming they only use one key everywhere, always): (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime) How would I setup my key selection to depend on what group I'm in? -- 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