TIP: Click on subject to list as thread! ANSI
echo: batpower
to: Mark Lewis
from: Richard Webb
date: 2009-02-03 18:16:16
subject: how would you approach this?

HI Mark,

following up a message from Richard Webb to Mark Lewis:

ML> the only thing i'm aware of that he may have a problem with is
ML> "spurious" lines that may appear in the message body before the
ML> actual test he is interested in... at least one of my packages seems
ML> to have a slight (buffering?) problem with long lines and sometimes
ML> the extraneous text ends up in the first line or two of the gated
ML> message's body... i saw on, the other day, where the date field go
ML> cut and the first line was "on, dec 29, 2008" for
example... "on"
ML> was the completion of the "Date: Mon" control line...

RW> solved that.  We grab from line 9 to end of message using
RW> sed to a temporary file.  First line has

RW> "NN2NN Winlink Post" email address deleted
RW> THE callsign will be the actual call sign of submitter,
RW> amateur radio callsign that is.
YEp, should have said first line which we're going to key
on.  sInce we were invoking (and still are) a batch from
netmgr itself memory resources quite limited.

WHen searching on text to manipulate using sed I"ll first
use the md dos find command as in:

type infile.txt | find "string" /i /n > outfile.txt

tHen we use a search replace, change in this case, to remove the ( and
replace ) with ascii 32.

THis means then HOrst's nset can be used to get that number
as an environment variable in most batches, and use that
variable in a sed command line.  HOWever, since we're
shelling from netmgr to the batch that won't quite work.

INtsead, in this batch we were using HORst's listmod to
build a batch which would use this value as %1.

HOWever, since Mark repaired that one we get what we want
right from tHe file created from the message.  MSg is still
saved in a local message area in case.

Before there were problems sometimes when multiple entries
were received in the same mail bundle.  I rigged a batch to
process these, save the message in timed, shell out, run the batch.

NOw we're getting what we want from the batch that is run
from a shell out of netmgr.  We still create another batch
from that one, but the secondary batch, which is invoked
when a flag file is found then gets info from other
databases such as the name of the vessel, physical
description, etc.
Am rather proud of my work on this one.  IT's been since
before CHristmas, and I'm finally where i want to be with it I think .

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 104 313
SEEN-BY: 712/848 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™.