🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #5952

Re: What is an rnews-batch (I nead reading material); Yarn import problem

#5952
From: Frank McNeil
Date: Tue, 07 Jun 1994 22:41
118 lines
3695 bytes
In article <05xwju2nwaLB065yn@login.dkuug.dk>, Henrik Roseno wrote:
>In article <23swjyr28XuP065yn@netcom.com>, Frank McNeil wrote:
>
>[deleted alot]
>You should 'import -r 00000001.MSG'
>I'm not really sure, but in this way all articles might go to the
>'junk'-newsgroup..?
>
>In SOUP-packets articles don't go to 'junk'-newsgroup.
>

Hello

  I have found that article only go to the junk newsgroup of yarn when
no newsgroup exists for the article in Yarn.

  I routinely import articles to Yarn that I select and save in tin
after stripping of the top article line with a perl script that I use
in a shell script that collects saved articles and treads and downloads
them.

  Thanks Henrik and Chin.

Frank

P.S. Improvements to these scripts will be gratefully accepted.

#!/bin/csh
#Get news batches to process
#6/4/94;ftmexpat@netcom.com
rm $HOME/rnews/*.rne $HOME/rnews/*.tmp
cat $HOME/rnews/rnews* >! $HOME/rnews/xrnews.tmp
rm $HOME/rnews/rnews*
perl $HOME/bin/rnews.strip.pl  $HOME/rnews/xrnews.tmp >! $HOME/rnews/rnews.msg
zip -m $HOME/rnews/rnews.rne $HOME/rnews/rnews.msg
sz -b $HOME/rnews/rnews.rne

Ther perl script rnews.strip.pl is:
while ( <> )
{
  $_ =~  s/^From netcom.com.{0,}\n//g;
    print "$_";
}

Then when in msdos

@rem getnews.bat ; ftmexpat@netcom
@rem 06-02-94 10:23pm
@rem to import usenet and mail

SET DOWNLOAD=D:\DOWNLOAD

copy %DOWNLOAD%\*.sou %DOWNLOAD%\sou

d:
cd\yarn
SET YARN=D:\YARN
SET TZ=PST7EDT

[deleted bunch of stuff...]

:bugs1
  if exist %DOWNLOAD%\bugs.sou  goto bugs


:test1
  if exist %DOWNLOAD%\msdos.sou  goto test

[deleted bunch of stuff...]

:bugs
  SET HOME=D:\bugs
  import %DOWNLOAD%\bugs.sou
  goto test1

:test
  SET HOME=D:\test
  import %DOWNLOAD%\test.sou
  goto EXIT

:getnews
  @rem rnews.msg is the name of a previously made rn-batch
  COPY %DOWNLOAD%\rnews.msg  %DOWNLOAD%\rnews
  del %DOWNLOAD%\rnews.msg
  @rem rnews.rne is the compressed usenet packet
  unzip -j %DOWNLOAD%\rnews.rne -d %DOWNLOAD%\
  copy %DOWNLOAD%\rnews.rne %DOWNLOAD%\rnews
  del %DOWNLOAD%\rnews.rne

  cd %DOWNLOAD%\

@rem is the name of Henrik Roseno's utility

  rnews %DOWNLOAD%\rnews.msg

  cd D:\YARN
  import -r %DOWNLOAD%\rnews.msg
  goto END

:EXIT

  SET HOME=D:\text
  import %DOWNLOAD%\*.sou

@rem  get messages saved in rnews.rne

if exist %DOWNLOAD%\rnews.rne  goto getnews


:END


---
Frank McNeil, Tax Code Junkie    ftp.netcom.com:/pub/ftmexpat/*
ftmexpat@netcom.com              //nonres, expat tax refr/pgm
lynx file://netcom2.netcom.com/pub/ftmexpat/home.html (being built)

Technical Details
Message-ID: <FcEzjyr28fpF066yn@netcom.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.msdos.mail-news.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!swrinde!ihnp4.ucsd.edu!library.ucla.edu!csulb.edu!csus.edu!netcom.com!ftmexpat
References: <TE-tju2nwmGB065yn@login.dkuug.dk> <DEoujyr28zpM065yn@netcom.com> <w-fvju2nwCjD065yn@login.dkuug.dk> <23swjyr28XuP065yn@netcom.com> <05xwju2nwaLB065yn@login.dkuug.dk>

Show Full Headers
Complete Article Headers
Message-ID: <FcEzjyr28fpF066yn@netcom.com>
Subject: Re: What is an rnews-batch (I nead reading material); Yarn import problem
Date: Tue, 7 Jun 1994 22:41:35 GMT
From: ftmexpat@netcom.com (Frank McNeil)
References: <TE-tju2nwmGB065yn@login.dkuug.dk> <DEoujyr28zpM065yn@netcom.com> <w-fvju2nwCjD065yn@login.dkuug.dk> <23swjyr28XuP065yn@netcom.com> <05xwju2nwaLB065yn@login.dkuug.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.msdos.mail-news.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!swrinde!ihnp4.ucsd.edu!library.ucla.edu!csulb.edu!csus.edu!netcom.com!ftmexpat
Newsgroups: alt.usenet.offline-reader,comp.os.msdos.mail-news,news.software.nn,dk.general
Sender: ftmexpat@netcom.com (Frank McNeil)
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Lines: 117