Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!indri!polyslo!csun!srhqla!daemon Newsgroups: comp.mail.mush Subject: Re: My domain in From: (mush 6.5) Message-ID: <631@srhqla.UUCP> Date: 17 May 89 01:02:47 GMT Sender: daemon@srhqla.UUCP Lines: 39 This issue is: setting a new From: header while having $edit_hdrs set. Mush doesn't let you do it for various reasons (discusssed below), but there are things that the user might wish to do which editing the From: header would solve. Specifically, making "from" display a correctly formed domain-style hostname. > On May 15, 10:44am, "Barton E. Schaefer" wrote: > On May 14, 8:36pm, Ronald Khoo wrote: > } Subject: My domain in From: (mush 6.5) > } > } From: ronald@ibmpcug ... where's my domain? !! > This is an artifact of mush trying to be completely uucp compatible as > well as conforming to RFC822. Mush does look up the domain name [and all > other aliases it can get from gethostbyname()] but it only uses the basic > host name from gethostname() when constructing addresses, You can set hostname = "ibmpcug.co.uk" in your. Now, the From: line that is constructed will contain that as your hostname. Note that setting your "hostname" from within mush will override all preexisting values of hostname and they cannot be retrieved. Therefore, I recommend using: mush> set hostname = "whatever... $hostname" > It ought to be OK to edit the From: field as long as the address given > remains you@valid.alternate.domain or localmachine!you. If you want > to redirect replies to a different address, that's what the Reply-To: > header is for. However, rather than trying to compare the From: line to > every possible alternate name, mush took the cowardly way out and simply > forbade you to change it. Indeed -- this was by design. Error recovery and authentication schemes were generated too much code to bother putting it in. Frankly, I got lazy and just disallowed it. You couldn't do it pre-6.5 anyway, so you're not losing any functionality. In a future release when the address comparing and storage code is more stabilized, then editing From: will probably be possible. --dan