🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.gnus
Article #522

Re: Help setting variables

#522
From: Paul A Palmer
Date: Fri, 20 Nov 1992 03:21
52 lines
3089 bytes
In article <BUZZ.92Nov18091440@lion.bear.com> buzz@bear.com (Buzz Moschetti) writes:

   In article <VAITKUS.92Nov16081050@ceres.lexmark.com> vaitkus@ceres.lexmark.com (Keith Vaitkus) writes:

      Could some kind soul tell me how I would change the From: field in
      the header? My company has one and only one address for employees --
      It is fixed, and is not related to what machine we post from. However
      whenever I post with gnus, it makes my From: address equal to the 
      machine I am posting from -- Any mail people send to this address
      will be bounced! since it is not the official company address. *sigh*

   It's not the "From:" header you want to change -- it's "Reply-to:".  Put
   this in your ~/.emacs:

     (setq mail-default-reply-to "vaitkus@ceres.lexmark.com (Keith Vaitkus)")

I'm not sure what this will do. mail-default-reply-to is a variable in
mh-e.el. I grepped for it on $EMACS/lisp/rmail*.el, but didn't find it. 

Here's an excerpt from the gnus manual that I think answers the question:

File: gnus  Node: GENERICFROM, Prev: Domain, Up: Environment, Next: GENERICPATH

GENERICFROM
-----------

  If the variable `gnus-use-generic-from' is non-`nil', the local host
name of your machine will not appear in the `From:' field of article
headers you post.  This is called the "GENERICFROM" feature in the Bnews
system.  This may be useful if there are many workstations connected to
each other in a local area network, and aliases service or automatic
forwarding of mail is supported between the workstations.

  To use the GENERICFROM, put the following code in `.emacs',
`site-init.el' or `default.el'.  If you are a system administrator and
are installing GNUS for other users, `site-init.el' is the best place to
define it because the definition is common to all users of the system
having the same domain and organization (*Note Domain and Organization:
Domain.).

     (setq gnus-use-generic-from t)

  As a special case of the GENERICFROM feature, if the variable
`gnus-use-generic-from' is a string, it is used as your domain instead
of the definition of the environment variable `DOMAINNAME' or the
variable `gnus-your-domain' (*Note Domain and Organization: Domain.).

--
Paul Palmer
Department of Mathematics     	E-mail: palmerp@math.orst.edu
Kidder Hall 368
Oregon State University, Corvallis, Oregon 97331-4605
Technical Details
Message-ID: <PALMERP.92Nov19192126@phoebus.math.orst.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!talon.ucs.orst.edu!palmerp
References: <VAITKUS.92Nov16081050@ceres.lexmark.com> <BUZZ.92Nov18091440@lion.bear.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!talon.ucs.orst.edu!palmerp
From: palmerp@math.orst.edu (Paul A Palmer)
Newsgroups: gnu.emacs.gnus
Subject: Re: Help setting variables
Message-ID: <PALMERP.92Nov19192126@phoebus.math.orst.edu>
Date: 20 Nov 92 03:21:26 GMT
Article-I.D.: phoebus.PALMERP.92Nov19192126
References: <VAITKUS.92Nov16081050@ceres.lexmark.com> <BUZZ.92Nov18091440@lion.bear.com>
Reply-To: Paul Palmer <palmerp@math.orst.edu>
Distribution: na
Organization: Dept. of Math, Oregon State University
Lines: 52
NNTP-Posting-Host: phoebus.math.orst.edu
In-reply-to: buzz@bear.com's message of 18 Nov 92 14:14:40 GMT