From: Richard Riley <rileyrgdev@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: pgg-default-user-id with more than one UID
Date: Sun, 29 Mar 2009 22:27:56 +0200 [thread overview]
Message-ID: <gqolkd$vqo$3@news.motzarella.org> (raw)
In-Reply-To: <mailman.4214.1238356815.31690.info-gnus-english@gnu.org>
Suno Ano <suno.ano@sunoano.org> writes:
> hi folks,
>
> I am with up-to-date Gnus/Emacs and I use pgg.el for signing/encrypting
> email. I am on Debian sid, using GPG (GNU Privacy Guard).
>
> I have *two* (instead of just one) OpenPGP UIDs (User IDs) which I would
> like to use based on what group I am sending email from.
>
>
>
> `pgg-default-user-id' allows me to specify only one UID which is then
> applied to each email no matter what group I send it from -- right now I
> do this with
>
> (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)
>
>
>
> However, I use gnus-parameters to treat different groups differently
> e.g. use different sender addresses etc. I want to use gnus-parameters
> for selecting my OpenPGP UIDs as well.
>
> The info manual mentions `(VARIABLE FORM)' at (Info-goto-node "(gnus)
> Group Parameters") but then I am simply to inexperienced with elisp to
> come up the the solution needed to selectively apply either one of my
> OpenPGP UIDs based on what group I am sending email from.
>
>
> Can anyone help?
>
>
(setq gnus-posting-styles
`(
(
,(rx(or "group name match"))
(from "My Name <myemail>")
(name "My Name")
(eval (setq pgg-gpg-user-id "myui123"))
)
)
)
--
next parent reply other threads:[~2009-03-29 20:27 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 [this message]
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
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='gqolkd$vqo$3@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).