Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: pgg-default-user-id with more than one UID
Date: Thu, 02 Apr 2009 19:58:13 +0200	[thread overview]
Message-ID: <gr2ubh$2ps$1@news.motzarella.org> (raw)
In-Reply-To: <mailman.4452.1238693022.31690.info-gnus-english@gnu.org>

Suno Ano <suno.ano@sunoano.org> writes:

> Thanks for your reply Richard but then still, it is not working. Here is
> my current setup:

I'm sorry about I don't know what posting-styles is. Is this your own
version of gnus-posting-styles which I showed in the example?

>
>
> ,----[ My basic settings for pgg ]
> | (require 'pgg)
> |
> | (setq pgg-default-scheme 'gpg)
> | (setq pgg-scheme 'gpg)
> |
> | (setq pgg-query-keyserver t)
> | (setq pgg-default-keyserver-address "subkeys.pgp.net")
> |
> | (setq gnus-message-replysign t
> |       gnus-message-replyencrypt t
> |       gnus-message-replysignencrypted t
> |       mm-verify-option 'always
> |       mm-decrypt-option 'always
> | )
> |
> | (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)
> `----
>
>
> And the second part, the gnus-parameters; below is only *one* group
> where I try to set a particular UID in line 25:
>
>  1  (setq gnus-parameters
>  2        `(
>  3
>  4
>  5  [skipping a lot of lines ...]
>  6
>  7
>  8          (,priv-my-gmail0-mail-address-gp
>  9           ; .... spam rules ............
> 10           (spam-contents gnus-group-spam-classification-ham)
> 11           (spam-process-destination . "nnimap:m.junk")
> 12           (spam-process ((spam spam-use-blacklist)
> 13                          (ham spam-use-whitelist)     ; for ham groups only
> 14                          (ham spam-use-bogofilter)    ; for ham groups only
> 15                          (spam spam-use-bogofilter)))
> 16           ; .... agent parameters ......
> 17           (agent-predicate . true)
> 18           (agent-score . file)
> 19           ; - - agent score rule - -
> 20           ; .... posting style .........
> 21           (posting-style
> 22              (name priv-my-name)
> 23              (address priv-my-sunoano1-mail-address)
> 24              (signature-file (concat emacs-root-dir "gnus/sig/m.realname"))
> 25              (eval (setq pgg-gpg-user-id "foo@example.com"))
> 26           )
> 27           ; .... group parameters ......
> 28           (display . 20)
> 29           ; .... local variables .......
> 30          )
> 31
> 32
> 33  [skipping a lot of lines ...]
> 34
> 35
> 36         )
> 37  )
>
>
> The odd thing is that no matter what I do, I am always prompted for one
> and only one UID even if I set the second one as shown above in line 25.
>
>        (as an example, this post is signed with my first UID, the one
>        that always pops up with pinentry no matter what)
>
>
> If I try to send a mail from the group specified above and then check
> (in the article buffer) with "C-h v pgg-gpg-user-id RET" the correct UID
> shows (the one given in line 25) but when I hit C-c C-c to ship of the
> mail, pinentry asks me for the other UID i.e. not the one specified in
> line 25 and shown with C-h v in the article buffer.
>
> Does anyone know what is going on here? All I want is to chose among my
> two GPG (GNU Privacy Guard) keys for signing, depending on which group I
> send mail from ...
>

-- 

  parent reply	other threads:[~2009-04-02 17:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4214.1238356815.31690.info-gnus-english@gnu.org>
2009-03-29 20:27 ` Richard Riley
2009-04-02 17:23   ` Suno Ano
2009-04-03 11:22     ` Daiki Ueno
2009-04-03 16:56       ` Suno Ano
2009-04-03 17:05         ` thierry.volpiatto
2009-04-04  2:37         ` Daiki Ueno
     [not found]         ` <mailman.4591.1238812676.31690.info-gnus-english@gnu.org>
2009-04-04  6:31           ` Richard Riley
2009-04-04  8:13             ` Daiki Ueno
2009-04-04  9:53               ` Daiki Ueno
2009-04-03 17:21       ` Leo
     [not found]     ` <mailman.4527.1238757743.31690.info-gnus-english@gnu.org>
2009-04-03 11:32       ` Richard Riley
2009-04-03 11:54         ` Richard Riley
     [not found]   ` <mailman.4452.1238693022.31690.info-gnus-english@gnu.org>
2009-04-02 17:58     ` Richard Riley [this message]
2009-04-02 21:05       ` Suno Ano
2009-03-29 19:57 Suno Ano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gr2ubh$2ps$1@news.motzarella.org' \
    --to=rileyrgdev@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).