home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / comm / zcm_scrp.zip / PLXUPL.T < prev    next >
Text File  |  1989-11-21  |  2KB  |  78 lines

  1.  :: Script to upload messages to Compuserve's EasyPlex Electronic mail.
  2.  :: Assumes the "Prompt" option (not menu) Easyplex option has been set.
  3.  :: Message files have the addressee in the first line, Subject in 2nd.
  4.  :: Message files are stored in file names starting with 000 without extension
  5.  :: Error recovery has not been extensively tested.
  6.     open -!g %item
  7.     set s0 ""
  8.      while "L<4&&!%s0" grab s0
  9.     ss s0 ">[mM][cC]|(7[0-9][0-9][0-9][0-9],[0-9][0-9]*)"
  10.     if !%z0 echoc "Bad Address: %s0"; goto foox
  11.     grab s1
  12.     if !t goto foox
  13.     put "\25g easy\r"
  14.     pat; pat 1  " COMpose, "; pat 2 "lex!"
  15.     pat 6 "Enter choice number !"
  16.     pat 7c "Home structure is unavailable,"
  17.     pat 8c "Press <CR> to continue: " "\025\r"
  18.       pat 9 "Enter correction "
  19.     pat 10 "% EasyPlex is temporarily unav"
  20.     wait -F40
  21.     if 7 goto fini
  22.     if 10 goto foobar
  23.     if n goto foobar
  24.     put "\25com\r"
  25.     pat 1 "done";
  26.     wait -f20
  27.     if !1 goto foobar
  28.     pg10;
  29.     if dP ena -r
  30.     else ena -p
  31.     wait -f1        : let echoes stop already.
  32.     if "%s1>31" putv s1; putw "\r"; set s1 "Possible Duplicate Message"
  33.     t -gx!G            : file is uploaded here, low level FC
  34.     if du putw "\r    --- Uploaded %t\r"
  35.     if jremote,tel put "(Uploaded via Telenet)\r"
  36.     put "\25/ex\r";
  37.     pat 1 "Send to"
  38.     wait -f20
  39.     if !1 goto foobar
  40.     put "\025%s0\r"
  41.     pat 1 "Subject:";
  42.     pat 2 " Invalid User ID:"
  43.     wait -f20
  44.     while "c&&2&&L<3" put "\025%s0\r" wait -f20
  45.     if !1 goto foobar
  46.     put "\025%s1\r"
  47.     echoc "File %item To: %s0 Sb: %s1"
  48.     pat 3 "Your name:"
  49.     pat 1 "correct";
  50.     pat 5c "YES or NO" "\25YES\r"
  51.     wait -f20
  52.     if 3 put "\25Chuck Forsberg\rY\r"; wait -f20
  53.     if !1 goto foobar
  54.     put "\25Y\r"
  55.     pat 1  " COMpose, ";
  56.     wait -f20
  57.     if "!1&&!2" goto foobar
  58.     obey "!mv %item Z%item.tmp"
  59.     echoc "File Uploaded: %item moved to Z%item.tmp"
  60.     ena -tG!p
  61.     pat 1 OK; pat 2 TOP
  62.     put "\25mic\r"
  63.     wait -f20; if !1 put "mic\r"; wait -f20
  64.     return
  65. foobar:    put \3
  66.     wait -f5
  67.     putw "\25t\r"
  68.     putw "\25mic\r"
  69.     if "h% EasyPlex is temporarily unav" goto fini
  70.     ena -tG!p
  71.     return
  72. foox:    echoc "Moving %item to Y%item.tmp"
  73.     echoc "File Not Accpeted"
  74.     obey "!mv %item Y%item.tmp"
  75. fini:    ena -gtG!p
  76.     nolog closetx
  77.     return
  78.