| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | wimm |
Hello, andrew;
19 Nov 02 17:43, andrew clarke wrote to Robert Bull:
>> "upgrade path" ;-) I wanted WIMM to do both things, that is,
>> report to a log, _and_ make a summary report.
I misspoke - what I meant was, AIUI, WIMM can _either_ make a report, _or_
copy found messages to a personal area, but not both at once. I wanted
both, so parsed the report.
ac> What does the report look like?
After Sendmsg has posted it, like this;
======================[ BEGIN QUOTE ]======================
Ä System reports (2:250/501.4) ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Reports Ä
Msg : 3 of 3 Rcv Uns Loc
From : WIMM 2:250/333.4 21 Nov 02 21:33:56
To : Robert Bull 2:250/333.4 21 Nov 02 21:33:56
Subj : WIMM report, Thu 21 Nov 2002, 21:33:56
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
New personal echomail; WIMM, Thu 21 Nov 2002, 21:33:55
ARTWARE
21 Nov 21:33:51 Msg from Gerald Miller (wimm)
21 Nov 21:33:51 Msg from andrew clarke (wimm)
OP1.CHAT
21 Nov 21:33:53 Msg from Martin Foster (Notice of closure)
--- SendMsg
=======================[ END QUOTE ]=======================
FWIW, the batch file is;
======================[ BEGIN QUOTE ]======================
{at}echo off
for %%a in (wimmtemp.bat wimm.rpt) do if exist %%a del %%a > nul
logecho New personal echomail; WIMM, $W $D $N $C$Y, $h:$m:$s > wimm.rpt
:: NEXT LINE WRAPPED
logecho fgrep -xs "$D $N" wimm.log | lmod [] ["|"] mawk
-f wimmxtrc.awk
[">>"] wimm.rpt >> wimmtemp.bat
call wimmtemp.bat
del wimmtemp.bat > nul
logecho set now=$W $D $N $C$Y, $h:$m:$s > wimmtemp.bat
call wimmtemp.bat
:: NEXT LINE WRAPPED
sendmsg c:\bt\msg\reports "WIMM,2:250/333.4" "Robert
Bull,2:250/333.4"
/s"WIMM report, %now%" < wimm.rpt
del wimmtemp.bat > nul
set now=
echo Deleting reports older than 7 days:
delage c:\bt\msg\reports\*.msg 7
=======================[ END QUOTE ]=======================
and the AWK script is;
======================[ BEGIN QUOTE ]======================
/WIMM Personal mail found in / {
sub(/\!$/, "", $NF)
echo_tag = $NF
echo_done = 0 + 0
}
$0 ~ /WIMM Msg from / && $0 !~ /rcvd, skipping/ {
if(echo_done == 0 + 0) {
printf("\n%s\n", echo_tag)
echo_done = 1 + 0
}
if($4 ~ /WIMM/) $4 = ""
printf(" %s\n", $0)
}
=======================[ END QUOTE ]=======================
I'm not a programmer, but have more small utility programs than one can
shake a stick at. LOGECHO and DELAGE are Horst Schaeffer's;
LOGECHO 2.0 (c) 1997 Horst Schaeffer
ECHO using time/date information:
$D day (01..31) $h hour
$M month (01..12) $m minutes
$N month (Jan..Dec) $s seconds
$H month (hex 1..C) $c sec/100
$Y year (00..99)
$C century (19|20)
$W day of week (Sun..Sat)
$V day of week (0..6)
$Z day of year (001..366)
$$ '$'
DELAGE filespec days [/R][/L]
delete file(s) if age >= days
/R - include r/o files
/L - list only, don't del
Ver. 1.2 (c) 1995, Horst Schaeffer
Both are in the PBATS archive, that used to be called HORST31.ZIP, from
BFDS sites or from Horst's Web site
http://home.mnet-online.de/horst.muc/
- and, practically everyone knows Chris Dunford's fgrep :-)
Regards,
Robert.
--- GoldED 3.00.Beta2+
* Origin: The Luminous Void (2:250/501.4)SEEN-BY: 24/903 106/2000 120/544 123/500 132/500 140/1 250/501 400/300 SEEN-BY: 633/104 260 262 267 270 285 640/954 770/215 771/4020 774/605 SEEN-BY: 2432/200 @PATH: 250/501 140/1 106/2000 123/500 774/605 633/260 285 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™.