* Don't want .sig on forwarded messages
@ 2000-04-28 3:39 Emerick Rogul
2000-08-10 20:27 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Emerick Rogul @ 2000-04-28 3:39 UTC (permalink / raw)
Hi,
Does anyone know if there's a setting I can twiddle in gnus so that it
doesn't add my signature to messages the I forward (I still want it
added to replys and follow-ups, though)?
-Emerick
--
-------------------------------------------------------------------------
"razzle, dazzle, drazzle, drone, time for this one to come home,
razzle, dazzle, drazzle, dry, time for this one to come alive."
--- Emerick Rogul <emerick@cs.bu.edu> ---------- 'hold my life', the mats
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Don't want .sig on forwarded messages
2000-04-28 3:39 Don't want .sig on forwarded messages Emerick Rogul
@ 2000-08-10 20:27 ` Lars Magne Ingebrigtsen
2000-08-14 17:26 ` François Pinard
0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-08-10 20:27 UTC (permalink / raw)
Emerick Rogul <emerick@cs.bu.edu> writes:
> Does anyone know if there's a setting I can twiddle in gnus so that it
> doesn't add my signature to messages the I forward (I still want it
> added to replys and follow-ups, though)?
There is no pre-defined functionality in Gnus for doing this.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Don't want .sig on forwarded messages
2000-08-10 20:27 ` Lars Magne Ingebrigtsen
@ 2000-08-14 17:26 ` François Pinard
0 siblings, 0 replies; 3+ messages in thread
From: François Pinard @ 2000-08-14 17:26 UTC (permalink / raw)
[Lars Magne Ingebrigtsen]
> Emerick Rogul <emerick@cs.bu.edu> writes:
> > Does anyone know if there's a setting I can twiddle in gnus so that it
> > doesn't add my signature to messages the I forward (I still want it
> > added to replys and follow-ups, though)?
> There is no pre-defined functionality in Gnus for doing this.
I use the following, which allows me to decide on a per-message basis if
I will sign it or not. I did not recently check if this code works with
cryptographic signatures, however...
(defvar PGP)
(unless (boundp 'PGP)
(setq PGP (or (executable-find "pgp") (executable-find "gpg"))))
(defconst fp-signature-type
(cond ((member user-login-name '("bourbeau" "payette" "pinard")) 'ask)
(t 'clear))
"Possible values are 'clear, 'pgp, 'none or 'ask.")
(defun fp-sign-message ()
(let* ((request (if PGP "Signature (c-clear, p-pgp, n-none)? [c] "
"Signature (y/n)? [y] "))
(replies (if PGP '((?c . clear) (?p . pgp) (?n . none)
(?y . clear) (? . clear) (?\C-m . clear))
'((?y . clear) (?n . none)
(?c . clear) (? . clear) (?\C-m . clear))))
(signature-type (if (eq fp-signature-type 'ask)
(let ((cursor-in-echo-area t)
(reply 0))
(while (not (assq reply replies))
(message request)
(setq reply (read-char-exclusive)))
(cdr (assq reply replies)))
fp-signature-type)))
(cond ((eq signature-type 'clear) (mail-signature nil))
((eq signature-type 'pgp) (mc-sign-message)))))
(defun fp-mail-send-routine ()
; [...]
(or mail-signature (fp-sign-message)))
(defun fp-message-send-routine ()
[...]
(or message-signature (fp-sign-message)))
(eval-after-load "sendmail"
'(progn
; [...]
(add-hook 'mail-send-hook 'fp-mail-send-routine)))
(eval-after-load "message"
'(progn
; [...]
(add-hook 'message-send-hook 'fp-message-send-routine)))
--
François Pinard http://www.iro.umontreal.ca/~pinard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-08-14 17:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-28 3:39 Don't want .sig on forwarded messages Emerick Rogul
2000-08-10 20:27 ` Lars Magne Ingebrigtsen
2000-08-14 17:26 ` François Pinard
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).