[gnu.emacs.gnus] how to add Reply-To: to outgoing articles?

bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) (05/10/89)

I want GNUS (2.11) to insert a header line like "Reply-To:
bob@cis.ohio-state.edu" in each article I post.  I think I want to use
gnus-optional-headers and some appropriate hook functions, but I'm not
much of a Lisp hacqeur.  Any suggestions would be welcome.

Long-winded explanation follows - hit "n" or something if you aren't
interested.

Our mail system creates From: lines with our domain name like
"user@cis.ohio-state.edu".  Several hosts advertise MX for that
domain, and we have one unified mail system, so that works fine.

Our news system creates From: lines with full hostnames like
"user@host.cis.ohio-state.edu".  This will cause privately-mailed
responses to news articles to be delivered to that user on that
machine.  Once delivered to a particular machine, the mail message
will enter the unified department-wide mail system, so that works fine
too.

Occasionally, a particular machine (usually one running SunOS 4.0)
from which I may recently have posted news will go AWOL and stop
answering the phone for SMTP deliveries.  Alas, that means that mail
delivery attempts to that machine to fail and queue, and I may not
even notice for several days because I'm exchanging plenty of mail
traffic via "bob@cis.ohio-state.edu", and I don't even miss the
traffic that isn't succeeding in finding that particular host.

tale@PAWL.RPI.EDU (David C Lawrence) (05/10/89)

This is how I do it:

(setq news-inews-hook
      '(lambda ()
         (mail-position-on-field "Reply-to")
         (insert "tale@pawl.rpi.edu")))

Works just fine for me; I use it because I sometimes read news under a
different account or when I am in the its.rpi.edu domain (which I
don't think will accept mail for the *.its.rpi.edu).

Dave
-- 
      tale@rpitsmts.bitnet, tale%mts@itsgw.rpi.edu, tale@pawl.rpi.edu

bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) (05/10/89)

See?  It works great - thanks!

olaf@tub.UUCP (Olaf Heimburger) (05/11/89)

In article <BOB.89May9132043@allosaur.cis.ohio-state.edu> bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) writes:

bob> I want GNUS (2.11) to insert a header line like "Reply-To:
bob> bob@cis.ohio-state.edu" in each article I post.  I think I want to use
bob> gnus-optional-headers and some appropriate hook functions, but I'm not
bob> much of a Lisp hacqeur.  Any suggestions would be welcome.

First, I hope you use GNUS (3.11).
Second, there is also the way to define a generic-from for GNUS. Put
the following in your ~/.emacs.

(setq gnus-use-generic-from "cis.ohio-state.edu")

Regards,
--olaf
--
* Olaf Heimburger, Technical University of Berlin (West), Dep. of CS
* uucp: ...!pyramid!tub!olaf (US)	...!mcvax!unido!tub!olaf (Europe)
* <olaf@tub.UUCP> <olaf@db0tui6.BITNET> <olaf@tub.BITNET>
* >>> Have you hugged your Computer today?