I have the following:
;;; Set From header based on To header
(setq gnus-posting-styles
'(("nn.+:"
(From (save-excursion
(set-buffer gnus-article-buffer)
(message-fetch-field "to"))))))
Which, as the comment says, sets the From header to be that of the
previous mail's To header. I have problems with my address being in the
Cc header instead or with there being more than one address in To, but
this is not important.
What I really want to do is only set the From address to be one from a
pre-set list and to fall back on user-mail-address if there is no match.
I don't know anywhere near enough lisp to write this though, so how
would I go about doing this?
Matthew
--
I must take issue with the term "a mere child," for it has been my
invariable experience that the company of a mere child is infinitely
preferable to that of a mere adult.
-- Fran Lebowitz
_______________________________________________
Info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english