TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Paul Quinn
from: Richard Webb
date: 2009-04-19 19:31:16
subject: Newsgroup (NG) digests

Hi Paul,

On Sat 2037-Apr-18 10:23, Paul Quinn (3:640/384) wrote to All:

PQ> I'm about to start a batch programming project to split NG digests
PQ> up into their basic posts again, and was wondering if anyone might
PQ> have done the same thing already?
sOunds doable.  I've been playing with such an idea to
possibly automatically grab out ng posts to post in echomail or in my local
bases.  My problem right now is  nettamer
which I'm using to retrieve them, although there are ways.
MOre a problem with email because of all the mime
formatting, fools with html and the like .

PQ> I plan on doing a -very- rudimentary splitting function only, due to
PQ> the complexity of the structure of digest emails.  (The digests have
PQ> multiple "From:" and "Date" lines and have no
real delimiter between
PQ> posts.)  However, there may be a way of doing it with fgrep[386]
PQ> (-gasp-!), using its character wildcard search ability.

PQ> Has anyone tried this process yet?  Or, anything similar perhaps? 

 I'm doing such a thing with some of the periodical
information i post in the ls_arrl echo, ham radio bulletins
and the like.  I use a splitting function to split those
emails into parts.  YOu could do the same with your digests.

I'm using postit to post these to my squish bases as
echomail, but have used other autoposters.

I'll post an example of what I'm doing to post amateur radio newsline
weekly when received as an email.  IF this helps
set you on the right course let me know.

I go through my email with my usual reader, find the current version of
Amateur Radio NEwsline (R) which came in.  I save it to a file named
newsline.txt which is then found by the
batch when I exit my mail reader.

From my mail reader batch:


:newsline
cd \nettamer\mail
type newsline.txt | find "(TM)" /i /n >> getstart.txt
chg /i getstart.txt /s [91] /r ""
chg /i getstart.txt /s [93] /r [32]
nset first=$1 < getstart.txt
del getstart.txt
sed -n %FIRST%,$p > newsline.out
del newsline.txt
ren newsline.out newsline.txt
chg /i newsline.txt /s =20 /r ""
echo. >> newsline.txt
type c:\robotext\newsline.ftr >> newsline.txt
move newsline.txt c:\staging
cd \staging
carve /s newsline.txt 15k
del newsline.txt
set first=
copy newsline.* c:\robot
del newsline.*
cd \
call postnews.bat

NOw we go into postnews where we find out how many pieces we have of
newsline.txt, set that value as an envinronment
variable, branch and post.  IF more than three parts we need to create the
automation to post, so a note is made for the
sysop, files are not deleted and life goes on.  IF three
parts or less automation takes care of posting Amateur RAdio NEwsline in
ls_arrl with appropriate subject lines of
"amateur radio newslint PT I" etc.
NOte you'll need sed for this to work, or something similar. I think I
might be using some of TImo from FInland's work as well to do this.  LET's
have a quick look see if there are
any other dependencies you'd need .


Nothing there, we just use dos' own dir command to get
number of files, play games with the text to get that number and stuff it
in an environment variable %POSTNUM% and then
...
if %POSTNUM%==1 goto one
if %POSTNUM%==2 goto two
if %POSTNUM%==3 goto three
if %POSTNUM%==4 goto over
if %POSTNUM%==5 goto over
if %POSTNUM%==6 goto over
we use ifnumber first to limit the scope, before the above
lines of course.

HOpe that helps you out.


Regards,
           Richard
--- timEd 1.10.y2k+
* Origin: Radio REscue net operations BBS (1:116/901)
SEEN-BY: 10/1 3 34/999 120/228 123/500 128/2 140/1 222/2 226/0 249/303 250/306
SEEN-BY: 261/20 38 100 1381 1404 1406 1410 1418 266/1413 280/1027 320/119
SEEN-BY: 393/68 396/45 633/104 260 267 285 640/954 690/682 734 712/0 313 848
SEEN-BY: 800/432 801/161 189 2222/700 2320/100 105 200 2905/0
@PATH: 116/901 3634/12 123/500 261/38 633/260 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.