From:	MERC::"uunet!VM1.NODAK.EDU!owner-anu-news"  8-APR-1993 13:22:55.59
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@VM1.NoDak.EDU>
CC:	
Subj:	Re: Automatic mailing of incoming articles

In <1993Apr7.073155.22526@yang.earlham.edu>, michaelb@yang.earlham.edu writes:
> I have this setup here at earlham to catch everything that we post.  Since
> I upgraded to version 6.1b6, this no longer works.  It only creates a batch
> file regardless of whether you use an M or a B.  Has anyone else had this
> problem?

The following patch should make the M flag create separate files again.
--
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

*** [-.news_v61_src]newsdist.c
--- [-.news_src]newsdist.c
**************
*** 978,984
        if (s->sys_fp)
          fpo = s->sys_fp;
        else {
!         if (!(fpo = fopen(s->sys_file,"a","mbc=64","shr=nil")))
            fpo = fopen(s->sys_file,"w","mbc=64","alq=30","deq=30","shr=nil");
          if (fpo)
            fstat(fileno(fpo), &s->sys_statb);
--- 978,984 -----
        if (s->sys_fp)
          fpo = s->sys_fp;
        else {
!         if ( *s->sys_type == 'm' )
            fpo = fopen(s->sys_file,"w","mbc=64","alq=30","deq=30","shr=nil");
          else
            if (!(fpo = fopen(s->sys_file,"a","mbc=64","shr=nil")))
**************
*** 980,985
        else {
          if (!(fpo = fopen(s->sys_file,"a","mbc=64","shr=nil")))
            fpo = fopen(s->sys_file,"w","mbc=64","alq=30","deq=30","shr=nil");
          if (fpo)
            fstat(fileno(fpo), &s->sys_statb);
          }
--- 980,988 -----
        else {
          if ( *s->sys_type == 'm' )
            fpo = fopen(s->sys_file,"w","mbc=64","alq=30","deq=30","shr=nil");
+         else
+           if (!(fpo = fopen(s->sys_file,"a","mbc=64","shr=nil")))
+             fpo = fopen(s->sys_file,"w","mbc=64","alq=30","deq=30","shr=nil");
          if (fpo)
            fstat(fileno(fpo), &s->sys_statb);
          }
**************
*** 991,997
          }
        if (!fpo) continue;
  #if !CLOSE_BATCHFILES
!       s->sys_fp = fpo;
  #endif
          if (*s->sys_type == 'f') {
            if (strncmp(item_file, Itm_device, sizeof(Itm_device)-1))
--- 994,1001 -----
          }
        if (!fpo) continue;
  #if !CLOSE_BATCHFILES
!       if ( *s->sys_type != 'm' )
!           s->sys_fp = fpo;
  #endif
          if (*s->sys_type == 'f') {
            if (strncmp(item_file, Itm_device, sizeof(Itm_device)-1))
