From:	ADVAX::"mcnc!VM1.NoDak.EDU!sloane%KUHUB.CC.UKANS.EDU" 24-MAY-1991 19:26:26.24
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	Re: Paths/From Field

Received: by ADVAX.DECnet (utk-mail11 v1.5) ; Fri, 24 May 91 19:24:41 EDT
Received:  from mcnc by ge-dab.GE.COM (5.61/GE-DAB 1.15) with UUCP
	id AA05261 for ; Thu, 23 May 91 15:35:47 -0400
Received: from VM1.NoDak.EDU by mcnc.mcnc.org (5.59/MCNC/3-21-91)
	id AA15615; Thu, 23 May 91 12:26:55 -0400
	for ARISIA.DNET.ge.com!EVERHART
Message-Id: <9105231626.AA15615@mcnc.mcnc.org>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 7230; Thu, 23 May 91 11:26:33 CDT
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 3225; Thu, 23 May 91 11:26:02 CDT
Date:         Thu, 23 May 91 11:20:47 CDT
Reply-To: mcnc!VM1.NoDak.EDU!sloane%KUHUB.CC.UKANS.EDU
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
From: mcnc!VM1.NoDak.EDU!sloane%KUHUB.CC.UKANS.EDU
Subject:      Re: Paths/From Field
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
In article <1991May22.084304.47@cutler.uucp>,
 john@cutler.uucp (John E. Babbitt Jr.) writes:
> Well, has anyone yet figured a way to get a "From:" address in the form of
> "user%site.uucp@preferred.address", where "%site.uucp" is indeed my site.
 
There are several possibilities.  First, there is a bug in NEWSSITE.H.
 
The line:
 
#ifdef NOALLOW_USER_FROM
 
should read
 
#ifndef NOALLOW_USER_FROM
 
Once that is fixed, and NEWS rebuilt, you could modify your
SYLOGIN.COM file to do:
 
$ user = f$edit(f$getjpi("","USERNAME"),"collapse") + "%site.uucp"
$ define NEWS_FROM "''user'"
 
Another possibility is to modify NEWSSITE.C as follows:
 
change:
 
  if (!strchr(mail_sig,'@')) {
    strcat(mail_sig,"@");
    strcat(mail_sig,Node_address);
    }
 
to:
 
  if (!strchr(mail_sig,'@')) {
    strcat(mail_sig,"%site.uucp@");
    strcat(mail_sig,Node_address);
    }
--
USmail: Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
E-mail: sloane@kuhub.cc.ukans.edu, sloane@ukanvax.bitnet, AT&T: (913)864-0444
