home *** CD-ROM | disk | FTP | other *** search
- ###############################
- # --- get_mail.ss --- #
- # Log onto MSC BBS (TriBBS) #
- # and get any NEW mail. #
- ###############################
- # Compile with builder, ver 2 #
- ###############################
- #
- # define parameters to use
- #
- USER: STRING "GUEST GUEST!"
- PASSWORD: STRING "GUEST!"
- PHONE: STRING "1,205,880,9748!"
- #
- # Dial phone
- #
- SETPACE 0.2
- SETWAIT 5.0
- PROTOCOL "A"
- REPLY "!AT!"
- WAITFOR "OK"
- IFTRUE DIAL
- SAY "Expected OK not received"
- GOTO ERROR
- DIAL:
- SETWAIT 45.0
- REPLY "ATDT"
- REPLY PHONE
- WAITFOR "CONNECT"
- IFTRUE LOGIN
- SAY "Expected CONNECT not found"
- GOTO ERROR
- #
- # no graphics
- #
- LOGIN:
- SETWAIT 30
- REPLY CR
- WAITFOR "graphics (y/N)?|LAST name:"
- IF "0" THEN GET_NAME
- IF "1" THEN GOT_NAME
- SAY "'graphics (y/N)?' not received"
- GOTO ERROR
- #
- # enter name
- #
- GET_NAME:
- REPLY CR
- WAITFOR "LAST name:"
- IFTRUE GOT_NAME
- SAY "'LAST name' not received"
- GOTO ERROR
- GOT_NAME:
- REPLY USER
- #
- # enter password
- #
- WAITFOR "password:"
- IFFALSE ERROR
- REPLY PASSWORD
- #
- # "more?" or "Main Menu:"
- #
- MORE:
- WAITFOR "more?|Main Menu:"
- IF "1" THEN SKIP_MAIN
- IFNOT "0" THEN ERROR
- REPLY CR
- GOTO MORE
- SKIP_MAIN:
- REPLY CR
- #
- # select Messages
- #
- WAITFOR PROMPT
- IFFALSE ERROR
- REPLY "M"
- #
- # select Your mail
- #
- WAITFOR PROMPT
- IFFALSE ERROR
- REPLY "Y"
- #
- # select This conference
- #
- WAITFOR "to Quit:"
- IFFALSE ERROR
- REPLY "T"
- #
- # select New mail
- #
- WAITFOR "Messages:"
- IFFALSE ERROR
- REPLY "N!"
- #
- # catch with ASCII
- #
- RECEIVE "NEWMAIL"
- #
- # say goodbye
- #
- QUIET 0.5
- REPLY "G!"
- SAY "Hanging up..."
- REPLY CR
- HALT
- #
- # error exit
- #
- ERROR: SAY " "
- SAY "Error !"
- STATUS
- HALT
- #
- # common strings
- #
- PROMPT: STRING "?]?"
- CR: STRING "!"
- #
- END