home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
comm
/
zcm_scrp.zip
/
BIXMSGU.T
< prev
next >
Wrap
Text File
|
1989-11-21
|
1KB
|
51 lines
::
:: "bixmsgu.t" goes in %lib UPLOAD BIX Conference messages
:: Header line format:
:: telecomm.pgms/general #399, from gscharf, 302 chars, Sun Apr 17 16:16:45 1988
:: s1 = conference/topic s2 = number to reply to
::
echo "File = %item"
open -!tg %item
set s0 ""
while "t&&!%s0" grab s0
ss s0 "([^ ]+)( #)([0-9]*)"
if "jz1,/" goto reply
echo "'%s0': originating format not done yet"; closetx; return
reply:
sets s1 "%z1"; sets s2 "%z3"
echo "Conf/topic: '%s1' Reply to #: '%s2'"
:: if y review
:: closetx; return : for testing
pattern
pat 1 "Read:"
put "join %s1\r"; wait
pat 1 "Enter text. End with '.<CR>'"
put "com %s2\r"; wait
pg62; pp300; pq0; if !dP ena -p
if dP ena -r
t -gx; ena -t!p; pp250
pat 1 "action:"
put ".\r"
wait -f20
pat 1 " added."
put "add\r"
wait -f20
if !1 goto foobar
obey "!mv %item Z%item.tmp"
echoc "File Uploaded: %item moved to Z%item.tmp"
ena -gt
return
badmsg: echoc "Bad message format"
foobar: echoc "File Not Accpeted"
echo "Moving file to backup name"
: abort; **********
obey "!mv %item Y%item.tmp"
echoc "File Rejected: %item moved to Y%item.tmp"
ena -gt
return