[gnu.emacs.gnus] Can gnus put in a default 'Reply-to' field?

murphy@lam.dccs.upenn.edu (Linda Murphy) (10/06/89)

When I post an article using f, a, or F, the From: is
murphy@lam.dccs.upenn.edu.  I don't run a mail listener on lam.dccs.
My real mail address is murphy@dccs.upenn.edu.

How can I get gnus to put:
Reply-To: murphy@dccs.upenn.edu

in the header whenever I compose a message to be posted?

BTW, I don't use RMAIL, I use mh. 
In mh, I have a components file ~/Mail/components which contains:
To:
Subject:
Reply-To: Linda Murphy <murphy@dccs.upenn.edu>
cc:
-------

Thanks,
--lam
--
******************************************************************************
Who says I have to have a signature file?
******************************************************************************

tale@pawl.rpi.edu (David C Lawrence) (10/06/89)

In <MURPHY.89Oct5202442@lam.dccs.upenn.edu> murphy@lam.dccs.upenn.edu
(Linda Murphy) writes:
Linda> How can I get gnus to put:
Linda> Reply-To: murphy@dccs.upenn.edu
Linda> in the header whenever I compose a message to be posted?

How about if it puts it in the header after you've composed the
article?  The following hook function should suit your needs:

(setq gnus-Inews-article-hook
      (function (lambda ()
                  (or (mail-position-on-field "Reply-To")
                      (insert "murphy@dccs.upenn.edu (Linda
                      Murphy)")))))

This will put in the header iff it doesn't already exist; this way if
you want to set a Reply-To: to something else before C-c C-c'ing the
posting, it won't be touched by the hook.

Note that the "Reply-To: login@site.domain (Real Name)" form is
preferred here to "Reply-To: Real Name <login@site.domain>".  I think
it was Bob Sutterfield who found out a couple of months ago that some
fairly widely-used net.software doesn't particularly care for the
latter form, though I don't recall the details.

Dave
--
 (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))

portuesi@tweezers.esd.sgi.com (Michael Portuesi) (10/06/89)

In article <1989Oct6.033501.28282@rpi.edu> tale@pawl.rpi.edu (David C Lawrence) writes:

   In <MURPHY.89Oct5202442@lam.dccs.upenn.edu> murphy@lam.dccs.upenn.edu
   (Linda Murphy) writes:
   Linda> How can I get gnus to put:
   Linda> Reply-To: murphy@dccs.upenn.edu
   Linda> in the header whenever I compose a message to be posted?

   How about if it puts it in the header after you've composed the
   article?  The following hook function should suit your needs:

   (setq gnus-Inews-article-hook
	 (function (lambda ()
		     (or (mail-position-on-field "Reply-To")
			 (insert "murphy@dccs.upenn.edu (Linda
			 Murphy)")))))


Because GNUS uses the standard sendmail.el to handle message posting,
you can accomplish the same effect much more simply.  From my .emacs
file:

    (setq mail-default-reply-to "portuesi@sgi.com (Michael Portuesi)")

I used to do it with a GNUS hook too, until I studied the code and
discovered that sendmail offered a simpler way.  This also has the
advantage of automatically working with more than just GNUS, too.
--
__
\/  Michael Portuesi	Silicon Graphics Computer Systems, Inc.
			portuesi@SGI.COM

"The best length for television programs is either 30 seconds or 8
hours." David Byrne

montnaro@sprite.crd.ge.com (Skip Montanaro) (10/06/89)

What about:

    (setq mail-default-reply-to "<montanaro@crdgw1.ge.com> (Skip Montanaro)")

gnus-post-news seems to pay attention to it.

--
Skip Montanaro (montanaro@crdgw1.ge.com)

murphy@lam.dccs.upenn.edu (Linda Murphy) (10/06/89)

In article <MONTNARO.89Oct6095112@sprite.crd.ge.com> montnaro@sprite.crd.ge.com (Skip Montanaro) writes:

 > What about:

 >    (setq mail-default-reply-to "<montanaro@crdgw1.ge.com> (Skip Montanaro)")

 > gnus-post-news seems to pay attention to it.

Thanks, Skip.  I did the "setq" above and posted this message, and
it seems to work (there's the Reply-to up there).  Now I just have
to put this in my .emacs file so I don't have to type it everytime
I want to post.

 > --
 > Skip Montanaro (montanaro@crdgw1.ge.com)

By the way, what is putting the '--' in the message at the end?
I noticed that my posting has it, and yours seems to as well.
Does it have anything to do with the .signature file?
(I can't help but be curious about these things.  People tell
me I ask a lot of questions... @;-)

    --lam
--
******************************************************************************
Who says I have to have a signature file?
******************************************************************************

tale@pawl.rpi.edu (David C Lawrence) (10/07/89)

In <MURPHY.89Oct6111007@lam.dccs.upenn.edu> murphy@dccs.upenn.edu
(Linda Murphy):
Linda> By the way, what is putting the '--' in the message at the end?
Linda> I noticed that my posting has it, and yours seems to as well.
Linda> Does it have anything to do with the .signature file?

gnus-inews-article is putting it there.  Unfortunately it still does
it "wrong" as far as net.tradition is concerned.  I change it here
locally each time I install a new GNUS.  (Actually, I hadn't changed
it here until just now when this reminded me of it.)  The string
should be "-- ", surrounded by newlines, but gnuspost.el leaves off
the trailing space.  It's the traditional article/signature separator.

By the way, regarding my overkill about Reply-To: oops.
Occasionally I forget that the GNUS posting & mailing interface
uses the rmail/rnews/sendmail interface pretty heavily.

Dave
-- 
 (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))

montnaro@sprite.crd.ge.com (Skip Montanaro) (10/07/89)

In article <MURPHY.89Oct6111007@lam.dccs.upenn.edu>
murphy@lam.dccs.upenn.edu (Linda Murphy) writes: 

   By the way, what is putting the '--' in the message at the end?
   I noticed that my posting has it, and yours seems to as well.
   Does it have anything to do with the .signature file?
   (I can't help but be curious about these things.  People tell
   me I ask a lot of questions... @;-)

Questions are good. The -- and the contents of your .signature file are
usually inserted by inews. In GNUS the dirty work of posting is done by
functions in gnuspost.el.

--
Skip Montanaro (montanaro@crdgw1.ge.com)