home *** CD-ROM | disk | FTP | other *** search
- ;
- ; A1MAIL.RCL
- ;
- ; A1MAIL.RCL is a sample Reflection command file that can be used to
- ; receive ALL-IN-1 mail while executing DOS applications on your
- ; PC.
- ;
- ; NOTE: This command file will work only with ALL-IN-1 version 2.3
- ; or greater.
- ;
- ; To use A1MAIL.RCL:
- ;
- ; - run Reflection
- ; - logon to your VAX/VMS system and startup ALL-IN-1
- ; - do one the the following:
- ; - 1. Enter WM on the DIRECT-TO-1 File Transfer Menu (if
- ; installed on your system), or
- ; - 2 Hit <Alt-F10> to bring up the command line,
- ; - enter 'A1MAIL.RCL', and hit <CR>
- ;
- ; Reflection will then place itself in background mode and return you to
- ; the DOS command prompt. When Reflection detects that you have received
- ; mail, it will place itself in foreground. The command file will end
- ; whenever Reflection is placed back into the foreground.
- ;
- background
- q command on
- ;
- ; define strings that indicate new mail
- ;
- let v2 = "New mail"
- let v3 = "New ALL-IN-1 mail"
- ;
- :loop
- ;
- ; loop is repeated until a 'mail' message is received from
- ; the host.
- ;
- readhost 00:00:01 v4 until "^M"
- ;
- ; if we get placed back into foreground, end.
- ; if ^M was not found, keep looking
- ;
- if fgd
- stop
- endif
-
- if not found
- goto loop
- endif
- ;
- ; is a mail message?
- ;
- if find(v2,v4) = 0 and find(v3,v4) = 0
- goto loop
- endif
- ;
- ; now, switch to foreground and end
- ;
- foreground