Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!newstop!sun!eureka!argv From: argv%eureka@Sun.COM (Dan Heller) Newsgroups: comp.mail.mush Subject: Re: more From line noise Message-ID: <118650@sun.Eng.Sun.COM> Date: 31 Jul 89 17:08:18 GMT References: <284@kauai.ACA.MCC.COM> Sender: news@sun.Eng.Sun.COM Reply-To: argv@sun.UUCP (Dan Heller) Lines: 29 In article <284@kauai.ACA.MCC.COM> duanev@kauai.ACA.MCC.COM (Duane Voth) writes: > From: duanev@kauai.aca.mcc.com (duanev voth) > as a from line. Yuck. Postnews gets its stuff out of getpwent() > but from where does Mush get its "From:" comment? By default, mush gets it from getpwent() as well. But you can override it by setting the variable "realname" -- set realname = "Duane Voth" Or, you can setenv NAME to something (this is how sendmail works if your MUA doesn't do it for you). Mush reads $NAME as well for compatibility. If you compiled mush with UUCP defined, then you'll get host!user --if you compiled it without it defined you'll get user@host. Currently, mush always defaults From: headers to be: From: address (name) Altho with the "latest" version, you can do: my_hdr From: Duane Voth and it'll work. Note, you can't set it to just anything -- it must be set to your legal email address and it must be in a legitimate address format (see man page for details) otherwise mush will reject it and build it's own. Note that all of this is not true for sites that use MTAs which are "picky" -- that is, there are some MTAs which force a From: header ignoring any that were previously there. dan ----- My postings reflect my opinion only -- not the opinion of any company.