home *** CD-ROM | disk | FTP | other *** search
- setequal(n=1)
- setequal(x=1)
- *read
- setequal(r=0)
- setequal(w=1)
- setactivity(Reading Mail)
- *rmail
- notif (&n)=(1) then goto (endmr) ;if they came back...
- setequal(n=0)
- *brmail
- linefeed(1)
- himsg(/:LASTMSG/)
- setequal(f=%ARESP%)
- lowmsg(/:lastmsg/)
- setequal(n=%ARESP%)
- display (display\READ)
- setequal(y=%ARESP%)
- setequal(z=0)
- numbmenuask%CRON%(&3&Which read mail number or option would you like?&12&: &15&*)
- bignicesay(r:Reverse,q:quit,m:Since last read,s:Search,y:your mail,h:help)
- bigif(r:rev,m:since,s:search,y:Your,h:help,<CR>:qt,q:qt)
- number(%RESP%)
- if (%RESP%)=(0) then goto (inv2)
- iftrue (goto (nread))
- goto (inv2)
- *qt
- return
-
- *help
- display(display\help\read,/:SEC/)
- goto (brmail)
-
- *nread
- cmpval(%var%f,%RESP%)
- iftrue (goto (inv2))
- cmpval(%var%n,%RESP%)
- ifnottrue(setequal(/resp=%var%n))
- setequal(w=1)
- setequal(y=%RESP%)
- goto (repeat)
-
- *since
- msghigh(/:LASTMSG/)
- setequal(y=%ARESP%)
- cmpval(%var%f,%var%y)
- iftrue (goto (inv2))
- cmpval(%var%n,%VAR%Y)
- ifnottrue(setequal(y=%var%n))
- setequal(w=1)
- setequal(s=0)
- goto (repeat)
-
- *repeat
- inittxt
- setequal(s=0)
- getmail(%var%y,/:LASTMSG/,%var%w)
- if (%MsgNumber%)=(0) then goto (0next)
- setequal(z=10)
- notif (%ARESP%)=(Yes) then goto (nope)
- *banyway
- clearscr
- setequal(x=0)
- setequal(s=0)
- setequal(g=%RESP%)
- nicedate(%MSGSNTD%)
- say(&11&Message Number &3&%MsgNumber%&11& of &3&%var%f&11& was sent on&3& %ARESP%&11& at &3&*)
- nicetime(%MSGSNTT%)
- nicesay(%ARESP%&14&&CR& Sent by: &3&%MSGFROM%&CR&&14& Addressed to: &3&%MSGTO% )
- say(&14& Regarding: &3&%MSGDESC% )
- nicesay(&14& Status: &3&%MSGPVT%, %MSGRCVD%, Read %MSGRDTIMES% times, %REPLIES%)
- spause(8)
- if (%MSGATTACH%)=(Y) then if (%MSGPVT%)=(PRIVATE) then setequal(s=10)
- if (%MSGATTACH%)=(Y) then say (&12&* &14&File Attached: &3&%MSGATTNAME%)
- if (&s)=(10) then spause(9)
- say(&8&────────────────────────────────────────────────────────────────────────&CR&&7&)
- showtxt
- *reading
- if (&s)=(0) then display (display\READING)
- if (&s)=(10) then display (display\READINGA)
- numbmenuask %CRON%(&3&Which reading &11&option &3&or &11&message number&3&?&12&: &15&*)
- bignicesay(e:edit,q:quit,r:reply,s:Show again,n:next,f:forward thread,p:previous message,k:kill,o:Forward,h:help)
- if (&s)=(10) then bignicesay(d:Download Attach)
- bigif (e:edit,o:forw,q:qdisp,s:repeat,r:reply,p:previous,f:follow,k:kill,n:next,h:help2)
- bigif (d:downatt)
- if (%RESP%)=(<CR>) then goto (next)
- number(%RESP%)
- iftrue (goto (nread))
- setequal(s=5)
- goto (inv2)
-
- *help2
- display(display\help\readn,/:SEC/)
- goto (reading)
-
- *downatt
- zap(varr.%NODE%,%var%R)
- linefeed(1)
- loadsub(control\DOWNATT.CTL)
- goto (repeat)
-
- *forw
- namequal(a=%MSGTO%)
- namequal(b=%NAME%)
- if (&a)=(&b) then goto (okf)
- namequal(a=%MSGFROM%)
- if (&a)=(&b) then goto (okf)
- setequal(s=5)
- goto (inv2)
- *okf
- loadsub(control\macros\forw.ctl)
- goto (repeat)
-
- *your
- cmenuask(&CR&&3&Starting at which message number?&11&(%var%n-%var%f)&12&: &15&*)
- say(&CR&&11&Searching...|)
- clearmem
- seekto(/:LASTMSG/,%NAME%,%RESP%)
- if (%ARESP%)=(ERROR) then goto (endmr)
- log(--,Scanned for (Y)our mail)
- eline(25)
- zap(seeking.%NODE%,1)
- appendto(seeking.%NODE%,%NAME%)
- if (%ARESP%)=(ERROR) then goto (endmr)
- setequal(r=20)
- setequal(u=0)
- goto (snext)
-
- *search
- loadsub(control\macros\msearch.ctl)
- if (%RESP%)=(Q) then goto (endmr)
- notif (%ARESP%)=(ERROR) then goto (snext)
- goto (endmr)
-
- *rev
- if (&y)=(0) then goto (inv2)
- setequal(y=%var%f)
- setequal(w=-1)
- if (&y)=(0) then goto (inv2)
- goto (repeat)
-
- *snext
- inc(u)
- setequal(y=^:U^)
- if (^:U^)=(MOREMAIL) then goto (fmore)
- if (^:U^)=() then goto (endmr)
- goto (repeat)
-
- *fmore
- addvar(&u+-1=u)
- inpline(seeking.%NODE%,1)
- setequal(p=%ARESP%)
- inpline(seeking.%NODE%,2)
- if (&p)=(1) then seekto(/:lastmsg/,%ARESP%,^:u^)
- if (&p)=(2) then seekfrom(/:lastmsg/,%ARESP%,^:u^)
- if (&p)=(3) then seekdesc(/:lastmsg/,%ARESP%,^:u^)
- if (&p)=(4) then seektext(/:lastmsg/,%ARESP%,^:u^)
- setequal(u=0)
- goto (repeat)
-
- *lnext
- inc(u)
- setequal(y=^:U^)
- if (^:U^)=() then goto (endmr)
- goto (repeat)
-
- *qdisp
- linefeed(1)
- if (&r)=(10) then goto (endmr)
- Return
-
- *0next
- if (&r)=(10) then goto (lnext)
- if (&r)=(20) then goto (snext)
- if (&y)=(0) then goto (inv2)
- if (&y)=(-1) then goto (inv2)
- addvar(%var%y+%var%w=y)
- if (&y)=(0) then goto (inv2)
- cmpval(%var%f,%var%y)
- iftrue (goto (inv2))
- goto (repeat)
-
- *smore
- notif (&x)=(1) then say(&10&Searching for more messages...|)
- setequal(x=1)
- setequal(s=10)
-
- *next
- if (&r)=(10) then goto (lnext)
- if (&s)=(0) then goto (smore)
- if (&r)=(20) then goto (snext)
- if (&y)=(0) then goto (inv2)
- if (&y)=(-1) then goto (inv2)
- notif (%MRESP%)=() then goto (sknext)
- addvar(%var%y+%var%w=y)
- if (&y)=(0) then goto (inv2)
- cmpval(%var%f,%var%y)
- iftrue (goto (inv2))
- goto (repeat)
- *sknext
- setequal(y=%MRESP%)
- if (&y)=(0) then goto (inv2)
- cmpval(%var%f,%var%y)
- iftrue (goto (inv2))
- goto (repeat)
-
- *kill
- enufsec(100)
- iftrue(goto (stkill))
- setequal(a=%NAME%)
- upcase(a)
- setequal(i=%MSGFROM%)
- upcase(i)
- setequal(j=%MSGTO%)
- upcase(j)
- notif (&i)=(&a) then notif (&j)=(&a) then goto (repeat)
- *stkill
- msgkill (/:LASTMSG/,%var%y)
- say(&12&&CR&Message #%var%y has been deleted!&CR&)
- goto (next)
-
- *follow
- if (%REPLIES%)=(NO REPLIES) then goto (nomore)
- setequal(s=5)
- setequal(q=%MSGPREV%)
- if (%MSGPREV%)=(0) then setequal(q=%var%y)
- nextforward(%var%q,%var%y,/:LASTMSG/)
- if (%ARESP%)=(0) then goto (nomore)
- setequal(y=%ARESP%)
- goto (repeat)
- *nomore
- say(&CR&&12&There are no more replies to this message.&CR&)
- goto (reading)
-
- *previous
- setequal(s=5)
- if (%MSGPREV%)=(0) then goto (inv2)
- setequal(y=%MSGPREV%)
- goto (repeat)
-
- *edit
- loadsub(control\macros\edit.ctl)
- goto (repeat)
-
- *reply
- loadsub(control\macros\reply.ctl)
- goto (repeat)
-
- *inv2
- if (&s)=(10) then goto (abb)
- say(&CR&&12&Invalid selection! Please try again...)
- secpause(1)
- flushout
- if (&s)=(5) then goto (reading)
- *abb
- if (&z)=(0) then goto (brmail)
- goto (endmr)
-
- *nope
- if (%ARESP%)=(ERROR) then goto (next)
- if (%ARESP%)=(DELETED) then goto (next)
- enufsec(100)
- iftrue (goto (banyway))
- goto (next)
-
- *endmr
- say(&11&&CR& ══ &14&No more mail found for you to read, %FNAME%&11& ══&CR&)
- enter
- Return
-