Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!sun-barr!lll-winken!arisia!sgi!shinobu!odin!odin.corp.sgi.com!portuesi From: portuesi@tweezers.esd.sgi.com (Michael Portuesi) Newsgroups: gnu.emacs.gnus Subject: Re: Can gnus put in a default 'Reply-to' field? Message-ID: Date: 6 Oct 89 08:10:23 GMT References: <1989Oct6.033501.28282@rpi.edu> Sender: news@odin.SGI.COM Reply-To: portuesi@sgi.com (Michael Portuesi) Distribution: na Organization: Silicon Graphics, Inc., Mtn. View, CA Lines: 34 In-reply-to: tale@pawl.rpi.edu's message of 6 Oct 89 03:35:01 GMT In article <1989Oct6.033501.28282@rpi.edu> tale@pawl.rpi.edu (David C Lawrence) writes: In 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