Gnus development mailing list
 help / color / mirror / Atom feed
* What's the best way to auto-sign some emails but not all?
@ 2024-11-29 14:49 Bjørn Mork
  2024-11-30 18:29 ` Trevor Arjeski
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Bjørn Mork @ 2024-11-29 14:49 UTC (permalink / raw)
  To: ding

Is there a nice way to always sign emails based on e.g. the current From
address?  I don't want to sign everything, but I would like to sign all
emails I send from one specific address.

I'm using gnus-posting-styles to automatically set up things like from
address, default headers and signature based on context.  But I can't
figure out how to enable automatic signing.  A simple approach like
adding

 (body "<#secure method=pgpmime mode=sign>")

to an existing posting style rule sort of works.  But it fails on
replies with quoted original text.  The body text end up between the
quoted text and the signature, which obviously makes sense for any real
body.  But the mml tag is not recognised and is sent verbatim.

I tried adding the tag in more complicated ways, using posting style
eval and a function inserting the mml tag on the first line of the body.
But the message buffer is always empty when this runs, so that doesn't
work any better.  The tag still ends up the same place.

I guess I'm looking at this the wrong way.  But I'm stuck.

(My elisp skills are extremely limited, so I didn't want to re-implement
the posting style context matching in a sending hook or similar.  That's
way out of my league)


Bjørn


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-12-08 21:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-29 14:49 What's the best way to auto-sign some emails but not all? Bjørn Mork
2024-11-30 18:29 ` Trevor Arjeski
2024-11-30 19:28   ` Bjørn Mork
2024-11-30 20:17     ` Trevor Arjeski
2024-12-02 15:11     ` Bjørn Mork
2024-12-03 10:35       ` Björn Bidar
2024-12-03 11:36         ` Bjørn Mork
2024-12-03 20:38           ` Björn Bidar
2024-12-01  3:58 ` Sean Whitton
2024-12-01 23:04 ` Björn Bidar
2024-12-01 23:43   ` Bob Newell
2024-12-08  5:05 ` James Thomas
2024-12-08 13:22   ` Bjørn Mork
2024-12-08 21:03     ` James Thomas

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).