[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pgg-default-user-id with more than one UID
From: |
Richard Riley |
Subject: |
Re: pgg-default-user-id with more than one UID |
Date: |
Sun, 29 Mar 2009 22:27:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
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"))
)
)
)
--