From:	CSBVAX::CSBVAX::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 27-MAR-1989 14:18
To:	MRGATE::"ARISIA::EVERHART"
Subj:	Re: News V5.7 and auto copy within vms mail


Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Mon, 27 MAR 89 10:02:18 PDT
Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Mon, 27 Mar 89 10:04:17 PST
Received: by ucbvax.Berkeley.EDU (5.61/1.36)
	id AA27293; Mon, 27 Mar 89 09:54:53 -0800
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 27 Mar 89 17:27:30 GMT
From: deimos.cis.ksu.edu!kuhub.cc.ukans.edu!sloane@rutgers.edu  (Bob Sloane)
Organization: University of Kansas Academic Computing Services
Subject: Re: News V5.7 and auto copy within vms mail
Message-Id: <4222@kuhub.cc.ukans.edu>
References: <912@haydn.kulesat.uucp>, <1889@csc.anu.oz>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

In article <1889@csc.anu.oz>, gih900@csc.anu.oz (Geoff Huston) writes:
>         $ MAIL/NOEDIT tmpfile/SUBJECT=subject address
> 
In routine do_mail in fine NEWSFORWARD.C, NEWS checks for the /SELF qualifier
on the command line, and if it is not present, appends /NOSELF to the command
line for mail that it is going to spawn.  This use of the /NOSELF option
overrides the setting of the COPY_SELF option in the MAILUAF.DAT (or whatever)
file. I had always assumed that this was the way it was designed, although
I never really liked it.  If you only append /SELF or /NOSELF when the option
is specifically given, then the default will be used when no option is
specified on the command line. The code should look something like:

    if ( cli$present(c$dsc("SELF")) == CLI$_PRESENT )
       sprintf(&xfrbuf[strlen(xfrbuf)],"/SELF");
    else if ( cli$present(c$dsc("SELF")) == CLI$_NEGATED )
       sprintf(&xfrbuf[strlen(xfrbuf)],"/NOSELF");

(Remember I an doing this from memory, so there may be bugs.  The above is
just an example and could probably be done better in several different ways.
For example, a temp variable should probably be used to avoid 2 calls to
cli$present. This code may also need to be changed in other places, I haven't
checked.)

> I have written V5.8 to use the callable mail interface, so the problem will be
> fixed in V5.8 
> 
Does this mean that news 5.8 will only work under VMS 5.x?

> Geoff Huston
> gih900@csc.anu.oz
-- 
+-------------------+-------------------------------------+------------------+
|  Bob Sloane        \Internet: SLOANE@KUHUB.CC.UKANS.EDU/Anything I said is |
|  Computer Center    \ BITNET: SLOANE@UKANVAX.BITNET   / my opinion, not my |
|  University of Kansas\  AT&T: (913) 864-0444         /  employer's.        |
+-----------------------+-----------------------------+----------------------+

