Tobias Brink <[EMAIL PROTECTED]> writes:
Hi Tobias,
> How about the following?
>
> (setq gnus-posting-styles
> '(((message-news-p)
> (signature "This is my news sig")
> )
>
> ((message-mail-p)
> (signature "This is my mail sig")
> )))
That won't work. The regexps of posting styles are matched against
group names. But you could use those functions to add a signature, too.
Untested:
(defun insert-sig ()
(let ((message-signature (if (message-mail-p)
"My mail sig"
"My news sig")))
(message-insert-signature)))
(add-hook 'message-send-hook 'insert-sig)
Or instead of the `if' in the function above you could use
`message-send-news-hook' and `message-send-mail-hook'.
Bye,
Tassilo
--
Richard Stallman needs neither mouse nor keyboard to operate his
computer. He just stares it down until it does what he wants.
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english