From: Jens Lechtenboerger <jens.lechtenboerger@fsfe.org>
To: Angel de Vicente <angel.vicente.garrido@gmail.com>
Cc: info-gnus-english@gnu.org
Subject: Re: Signing a message with S/MIME in Gnus?
Date: Thu, 03 Nov 2022 19:55:02 +0100 [thread overview]
Message-ID: <87sfizyik9.fsf@informationelle-selbstbestimmung-im-internet.de> (raw)
In-Reply-To: <87tu3gy04f.fsf@gmail.com> (Angel de Vicente's message of "Thu, 03 Nov 2022 07:21:04 +0000")
On 2022-11-03, at 07:21, Angel de Vicente wrote:
> So, I was actually thinking of going for the second option: use SMIME
> when I send from the address in the certificate, and use PGP when
> sending from this gmail address. But now I need to figure out how to
> tell Gnus to do that. Right now I have the following, which makes sure
> that by default I will be always signing with SMIME. Do you know if
> there is an easy way to set these depending on the "From" address?
>
> ,----
> | (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-smime)
> | (setq mml-secure-method "smime")
> `----
This might be possible with Posting Styles if your e-mails with
different senders are in different groups. See variable
gnus-posting-styles and the info page to which it points. To me,
the following part seems promising. Note that the body string could
be a function call that produces a secure tag.
((posting-from-work-p) ;; A user defined function
(signature-file "~/.work-signature")
(address "user@bar.foo")
(body "You are fired.\n\nSincerely, your boss.")
("X-Message-SMTP-Method" "smtp smtp.example.org 587")
(organization "Important Work, Inc"))
Best wishes
Jens
next prev parent reply other threads:[~2022-11-03 18:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-02 9:29 Angel de Vicente
2022-11-02 19:09 ` Jens Lechtenboerger
2022-11-02 20:51 ` Angel de Vicente
2022-11-03 7:09 ` Jens Lechtenboerger
2022-11-03 7:21 ` Angel de Vicente
2022-11-03 15:28 ` Angel de Vicente
2022-11-03 17:52 ` GH
2022-11-03 18:32 ` Angel de Vicente
2022-11-04 18:11 ` Angel de Vicente
2022-11-03 18:55 ` Jens Lechtenboerger [this message]
2022-11-03 19:25 ` Emanuel Berg
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=87sfizyik9.fsf@informationelle-selbstbestimmung-im-internet.de \
--to=jens.lechtenboerger@fsfe.org \
--cc=angel.vicente.garrido@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).