Jimmy Kaplowitz <[EMAIL PROTECTED]> writes:

> There is probably a standard and not-too-difficult way to
> selectively add the Mail-Followup-To: header to such a configurable
> system as any incarnation of Emacs. I wish I could provide a way,
> but I can't.

I mailed this privately to Tollef, but since it might be generally
useful for other Gnusers:

If you've set up your `to-address' group parameter in Gnus for each
mailing list (so 'F' does the right thing), then adding the following
code to one's `gnus-posting-styles' will make it automatically insert
that address as the Mail-Followup-To.

        ((and (message-mail-p) (stringp gnus-newsgroup-name))
         ("Mail-Followup-To" (gnus-group-get-parameter gnus-newsgroup-name 
'to-address)))

Just as an example, here's my full `gnus-posting-styles':

(setq gnus-posting-styles
      '((".*"
         ("User-Agent" (if (= 0 (random 10))
                           (format "Microsoft Gnus Express, Build %s (%s)"
                                   (gnus-continuum-version (gnus-version))
                                   gnus-version-number)
                         (concat (gnus-extended-version) " (" 
system-configuration ")")))
         (organization "The Ohio State University Dept. of Computer and Info. 
Science"))
        ((and (message-mail-p) (stringp gnus-newsgroup-name))
         ("Mail-Followup-To" (gnus-group-get-parameter gnus-newsgroup-name 
'to-address)))
        ((message-news-p)
         (address "[EMAIL PROTECTED]")
         ("Mail-Copies-To" "never"))
        ("^gnu\\|emacs"
         (organization "Church of Emacs, Missionary Dept."))
        ("gnu\\.emacs\\.bug"
         ("Mail-Copies-To" nil))))

Posting styles rock :)

Reply via email to