Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site oliveb.UUCP Path: utzoo!linus!decvax!decwrl!Glacier!oliveb!jerry From: jerry@oliveb.UUCP (Jerry Aguirre) Newsgroups: net.bugs,net.news.adm Subject: Enhancement to rnews 2.10.2 sys:F option Message-ID: <568@oliveb.UUCP> Date: Fri, 16-Aug-85 14:52:59 EDT Article-I.D.: oliveb.568 Posted: Fri Aug 16 14:52:59 1985 Date-Received: Mon, 19-Aug-85 21:45:27 EDT Distribution: net Organization: Olivetti ATC; Cupertino, Ca Lines: 46 Xref: linus net.bugs:606 net.news.adm:330 This enhancement allows a default for the :F: option is the news 2.10.2 sys file. It works like the default uux command. I find that it keeps the sys file shorter with less chance of errors. A sys line of the form: remotesys:net,fa,mod,to.remotesys:F Will cause the article pathname to be appended to the file: BATCHDIR/remotesys This is the pathname that the sendbatch and csendbatch scripts expect. You can still override this by explicitly specifying the path. *** ifuncs.orig Tue Sep 18 18:13:47 1984 --- ifuncs.c Fri Aug 2 12:40:57 1985 *************** *** 155,161 sprintf(TRANS, "%s/%s/%s", logdir(HOME), BATCHDIR, sp->s_xmit); ofp = fopen(TRANS, "a"); #else ! ofp = fopen(sp->s_xmit, "a"); #endif if (ofp == NULL) ! xerror("Cannot append to %s", sp->s_xmit); fprintf(ofp, "%s\n", firstbufname); fclose(ofp); --- 170,180 ----- sprintf(TRANS, "%s/%s/%s", logdir(HOME), BATCHDIR, sp->s_xmit); ofp = fopen(TRANS, "a"); #else ! if (*sp->s_xmit == '\0') { ! sprintf(bfr, "%s/%s", BATCHDIR, sp->s_name); ! ptr = bfr; ! } else ptr = sp->s_xmit; ! ofp = fopen(ptr, "a"); #endif if (ofp == NULL) ! xerror("Cannot append to %s", ptr); fprintf(ofp, "%s\n", firstbufname); fclose(ofp); -------- Jerry Aguirre @ Olivetti ATC {hplabs|fortune|idi|ihnp4|tolerant|allegra|tymix}!oliveb!jerry