From: ewilts@galaxy.gov.bc.ca (Ed Wilts)
Newsgroups: news.software.anu-news
Subject: Re: Add File/NoLog feature request
Date: 17 Apr 92 08:37:11 -0700
Organization: BC Systems Corporation

In article <1992Apr16.090112.430@mr.gov.bc.ca>, ewilts@mr.gov.bc.ca (Ed Wilts) writes:
> Here's yet another new feature request.
> I'd like to do something like:
> 	ADD FILE/LOG[=logfile.log] *.BATCH
> or	ADD FILE/NOLOG *.BATCH
> 
> Is this a feature that others would like to see?  Is it on a current "to-do"
> list or even in 6.1?  Should I just have some fun and hack away at NEWSADD.C
> myself and post the results?

I'll follow up my own posting with a modified NEWSADD.C.  This version does
only a /NOLOG.  What I've done is reduce all message to just warning and
errors.  Informational messages for each article being added are no longer
being generated.  This has undergone 2 days of testing - use at your own risk
(2 days is 50 invocations so it's fairly stable :-)).  The output of DIFF
follows after my sig.

--
Ed Wilts, BC Systems Corp., 4000 Seymour Place, Victoria, B.C., Canada, V8X 4S8
EWilts@Galaxy.Gov.BC.CA   |   Ed.Wilts@BCSystems.Gov.BC.CA   |   (604) 389-3430

************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
    1   /*Last Modified: 16-APR-1992 11:34:05 by EWILTS : NEWSADD.C*/
    2   /*
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
    1   /*
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  237   /*  printf("Add %s %s",itm[MESSAGE_ID],newsgroup); */
  238     if (!strcmp(newsgroup,"junk") && !junk_it) {
  239       printf("%s %s: REJECT (/NOJUNK)\n",itm[MESSAGE_ID],newsgroup);
  240       return;
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  236     printf("Add %s %s",itm[MESSAGE_ID],newsgroup);
  237     if (!strcmp(newsgroup,"junk") && !junk_it) {
  238       printf(": REJECT (/NOJUNK)\n");
  239       return;
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  244         printf("%s %s: REJECT (No Newsgroup)\n",itm[MESSAGE_ID],newsgroup);
  245         return;
  246         }
  247       printf("%s %s: JUNK (No Newsgroup)\n",itm[MESSAGE_ID],newsgroup);
  248       strcpy(newsgroup,junk);
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  243         printf(": REJECT (No Newsgroup)\n");
  244         return;
  245         }
  246       printf(": JUNK (No Newsgroup)");
  247       strcpy(newsgroup,junk);
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  251       printf("%s: REJECT (No Message-ID)\n",newsgroup);
  252       return;
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  250       printf(": REJECT (No Message-ID)\n");
  251       return;
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  257       printf("%s %s: REJECT (Path Loop)\n",itm[MESSAGE_ID],newsgroup);
  258       return;
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  256       printf(": REJECT (Path Loop)\n");
  257       return;
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  264         printf("%s %s: REJECT (SYS filter)\n",itm[MESSAGE_ID],newsgroup);
  265         return;
  266         }
  267       printf("%s %s: JUNK (SYS filter)\n",itm[MESSAGE_ID],newsgroup);
  268       strcpy(newsgroup,junk);
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  263         printf(": REJECT (SYS filter)\n");
  264         return;
  265         }
  266       printf(": JUNK (SYS filter)");
  267       strcpy(newsgroup,junk);
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  273         printf("%s %s: REJECT (No local Newsgroup match)\n",itm[MESSAGE_ID],newsgroup);
  274         return;
  275         }
  276       printf("%s %s: JUNK (No local Newsgroup match)\n",itm[MESSAGE_ID],newsgroup);
  277       strcpy(newsgroup,junk);
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  272         printf(": REJECT (No local Newsgroup match)\n");
  273         return;
  274         }
  275       printf(": JUNK (No local Newsgroup match)");
  276       strcpy(newsgroup,junk);
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  280     if ((!*cre_grp) && (!strcmp(newsgroup,junk))) printf("%s %s: REJECT (No JUNK)\n",itm[MESSAGE_ID],newsgroup);
  281     *itm_fname = '\0';
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  279     if ((!*cre_grp) && (!strcmp(newsgroup,junk))) printf(": REJECT (No JUNK)");
  280     *itm_fname = '\0';
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  288           printf("%s %s: REJECT (Duplicate - Cannot add Locally: Loop?)\n",itm[MESSAGE_ID],newsgroup);
  289           return;
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  287           printf(": REJECT (Duplicate - Cannot add Locally: Loop?)\n");
  288           return;
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  297               printf("%s %s: REJECT (%s)\n",itm[MESSAGE_ID],newsgroup,no_new_item);
  298               return;
  299               }
  300             printf("%s %s%s %s: JUNK (%s)\n",itm[MESSAGE_ID],newsgroup,no_new_item);
  301             mail_add_item(fn,junk,linecount,1);
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  296               printf(": REJECT (%s)\n",no_new_item);
  297               return;
  298               }
  299             printf(": JUNK (%s)\n",no_new_item);
  300             mail_add_item(fn,junk,linecount,1);
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  304           else printf("%s %s: REJECT (%s)\n",itm[MESSAGE_ID],newsgroup,no_new_item);
  305           }
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  303           else printf(": REJECT (%s)",no_new_item);
  304           }
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  334           printf("%s %s (Supersedes %s)\n",itm[MESSAGE_ID],newsgroup,itm[SUPERSEDES]);
  335           }
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  333           printf(" (Supersedes %s)",itm[SUPERSEDES]);
  334           }
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  345           printf("%s %s: REJECT\n",itm[MESSAGE_ID],newsgroup);
  346           return;
  347           }
  348   /*      printf("\n"); */
  349         mail_add_item(fn,junk,linecount,1);
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  344           printf(": REJECT\n");
  345           return;
  346           }
  347         printf("\n");
  348         mail_add_item(fn,junk,linecount,1);
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
  353   /*  printf("\n"); */
  354   }
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
  352     printf("\n");
  353   }
************
************
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174
 1045     printf("Add - Reading file: %s\n",fnam);
 1046     *add_inline = *fline = '\0';
******
File BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169
 1044     printf("\nAdd - Reading file: %s\n\n",fnam);
 1045     *add_inline = *fline = '\0';
************

Number of difference sections found: 15
Number of difference records found: 32

DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.DIFF;1-
    BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.C;174-
    BCSC$DISK2:[BCSC.MVP.USERS.EWILTS.NEWS.NEWS_SRC]NEWSADD.SAVE;169