home *** CD-ROM | disk | FTP | other *** search
- ; InterMail 2.01 (C) 1991 InterZone Software, Inc.
- ;
- ; Script by Peter Stewart Rev.7-31-91
- ; Documentation by Michele Hamilton-Stewart
- ;
- ; The following script is used at SunShine PCBoard to make a RIME mail
- ; run to my local hub using InterMail. Search for the 3 asterisks in the
- ; far right and enter the information specific for your needs.
- ; Any portion of the script may be customized more fully. If the hub you
- ; are calling has language modules or other opening prompts which differ
- ; from those shown, change them appropriately in the LOGON Section.
- ;
- ; *-------------------------------------------------------------------------
- ; CONNECT Section
- ; Debug is on to see what's happening. Change the port settings should they
- ; differ for you. Timeout is set for 300 seconds to insure that the wait
- ; while your hub processes mail for you isn't cut off too soon. Waits and
- ; retrys can be increased or decreased according to your own needs.
- ;
- ; Note that many modems also have inactivity timeout settings and that you
- ; will have to make sure that the modem doesn't time out before the script
- ; does.
- ; *-------------------------------------------------------------------------
-
- debug on ; We want to see what's happening
- setport 19200 8 1 NONE ; Set the port to correct settings
- timerset 300 ; Set timeouts to 300 seconds
-
- clearcount ; clear the retry count
-
- :dialup ; label for dial portion of script
- retrycount 20 ; we only want to make 20? attempts
- dial XXX-XXXX<CR> ; Enter Phone number to Dial ***
-
- case
- "CONNECT 9600" : >firstlogon ; if we get connect at the correct speed, logon
- VOICE : fail ; script fails if phone has been disconnected
- BUSY : wait 10 ; try again after 10 seconds
- "NO DIAL TONE" : wait 10 ; try again after 10 seconds
- "NO CARRIER" : wait 5 ; try again after 5 seconds
- RING<CR> : wait 5 ; - " - 5 - " -
- endcase
-
- >dialup ; go and try dialing again
-
- :firstlogon ; enter logon loop here
- clearcount ; clear the retry count
-
- :logon ; enter here subsequent times
- retrycount 30 ; we only want to loop max 30 times
-
- ; *-------------------------------------------------------------------------
- ; LOGON Section
- ; Add or change the prompts as necessary. To increase speed I decline
- ; graphics and quickly bypass the news, etc.
- ; Enter your NAME, PASSWORD and the Door number for the HUB software where
- ; appropriate. They should read "send first last<cr>" without the quotes, etc.
- ; *-------------------------------------------------------------------------
-
- CASE
- "want COLOR graphics (Enter)=no? " : send n q ns<CR>
- "What is your first name? " : send xxxx<cr> ; Enter your logon name
- "s will echo)? " : send xxxx<cr> ; Enter your password
- "(Enter)=yes? " : send n<cr>
- "min. left) Main Board Command? " : send op xx<cr> ; Enter Door # to open
- รจ : >xfer
- @nocarrier : fail
- ENDCASE
- >logon
-
- ; *-------------------------------------------------------------------------
- ; TRANSFER Section
- ; Make sure that your Upload directory and filename are correct. This should
- ; correspond with where you tell PCRelay's config to place the exported mail.
- ; Additionally, make sure the path is correct as to where you want the
- ; incoming mail to go.
- ; *-------------------------------------------------------------------------
-
- :xfer
-
- Upload Z e:\im\sunshine.rly ; Enter pathname for send file ***
- ifbad >failit ; if we fail it's a bad session
-
- Waitfor ** ; we have a file coming in
- Download Z e:\im ; Enter path for IN.RLY ***
- ifbad >failit ; if transfer fails, it's bad
-
- sessionok ; log successful session
- >endscript
-
- :failit ; label for failed transfer...
- sessionfail
-
- :endscript ; we're at the end now...
-