home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / gnus / 1281 < prev    next >
Encoding:
Text File  |  1992-11-20  |  3.0 KB  |  68 lines

  1. Path: sparky!uunet!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!talon.ucs.orst.edu!palmerp
  2. From: palmerp@math.orst.edu (Paul A Palmer)
  3. Newsgroups: gnu.emacs.gnus
  4. Subject: Re: Help setting variables
  5. Message-ID: <PALMERP.92Nov19192126@phoebus.math.orst.edu>
  6. Date: 20 Nov 92 03:21:26 GMT
  7. Article-I.D.: phoebus.PALMERP.92Nov19192126
  8. References: <VAITKUS.92Nov16081050@ceres.lexmark.com> <BUZZ.92Nov18091440@lion.bear.com>
  9. Reply-To: Paul Palmer <palmerp@math.orst.edu>
  10. Distribution: na
  11. Organization: Dept. of Math, Oregon State University
  12. Lines: 52
  13. NNTP-Posting-Host: phoebus.math.orst.edu
  14. In-reply-to: buzz@bear.com's message of 18 Nov 92 14:14:40 GMT
  15.  
  16. In article <BUZZ.92Nov18091440@lion.bear.com> buzz@bear.com (Buzz Moschetti) writes:
  17.  
  18.    In article <VAITKUS.92Nov16081050@ceres.lexmark.com> vaitkus@ceres.lexmark.com (Keith Vaitkus) writes:
  19.  
  20.       Could some kind soul tell me how I would change the From: field in
  21.       the header? My company has one and only one address for employees --
  22.       It is fixed, and is not related to what machine we post from. However
  23.       whenever I post with gnus, it makes my From: address equal to the 
  24.       machine I am posting from -- Any mail people send to this address
  25.       will be bounced! since it is not the official company address. *sigh*
  26.  
  27.    It's not the "From:" header you want to change -- it's "Reply-to:".  Put
  28.    this in your ~/.emacs:
  29.  
  30.      (setq mail-default-reply-to "vaitkus@ceres.lexmark.com (Keith Vaitkus)")
  31.  
  32. I'm not sure what this will do. mail-default-reply-to is a variable in
  33. mh-e.el. I grepped for it on $EMACS/lisp/rmail*.el, but didn't find it. 
  34.  
  35. Here's an excerpt from the gnus manual that I think answers the question:
  36.  
  37. File: gnus  Node: GENERICFROM, Prev: Domain, Up: Environment, Next: GENERICPATH
  38.  
  39. GENERICFROM
  40. -----------
  41.  
  42.   If the variable `gnus-use-generic-from' is non-`nil', the local host
  43. name of your machine will not appear in the `From:' field of article
  44. headers you post.  This is called the "GENERICFROM" feature in the Bnews
  45. system.  This may be useful if there are many workstations connected to
  46. each other in a local area network, and aliases service or automatic
  47. forwarding of mail is supported between the workstations.
  48.  
  49.   To use the GENERICFROM, put the following code in `.emacs',
  50. `site-init.el' or `default.el'.  If you are a system administrator and
  51. are installing GNUS for other users, `site-init.el' is the best place to
  52. define it because the definition is common to all users of the system
  53. having the same domain and organization (*Note Domain and Organization:
  54. Domain.).
  55.  
  56.      (setq gnus-use-generic-from t)
  57.  
  58.   As a special case of the GENERICFROM feature, if the variable
  59. `gnus-use-generic-from' is a string, it is used as your domain instead
  60. of the definition of the environment variable `DOMAINNAME' or the
  61. variable `gnus-your-domain' (*Note Domain and Organization: Domain.).
  62.  
  63. --
  64. Paul Palmer
  65. Department of Mathematics         E-mail: palmerp@math.orst.edu
  66. Kidder Hall 368
  67. Oregon State University, Corvallis, Oregon 97331-4605
  68.