home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / comm / fido / spot / rexx / pgp / _export.spot next >
Text File  |  1994-07-27  |  1KB  |  42 lines

  1. /***************************************************************************/
  2. /* Export.rexx   ©1993 Stu Churchill   2:250/107.97@fidonet                */
  3. /*                                                                         */
  4. /* $VER: Export.rexx 1.29 (5.9.93)                                         */
  5. /*                                                                         */
  6. /* Intended for use from a cron, to be called before polling for mail.     */
  7. /***************************************************************************/
  8.  
  9. options results
  10.  
  11. spot_path = 'run mail:Spot'  /* Change this line ONLY */
  12.  
  13.  
  14. if ~show('ports','SPOT') then do
  15.   address command spot_path
  16.   'WaitForPort SPOT'
  17.   quit = yes                  /* Marker to close SPOT after finishing */
  18. end
  19.  
  20. address 'SPOT'
  21. 'isiconified'
  22. if rc = 0 then do
  23.   icon = yes                  /* Marker to re-iconify after finishing */
  24.   'uniconify'
  25. end
  26. 'spot2front'
  27.  
  28.  
  29. ADDRESS COMMAND "RX rexx:AutoEncrypt.spot"  /* Call the encryption script */
  30.  
  31. 'export CLOSEWIN'            /* Export messages */
  32.  
  33.  
  34. if icon = yes then do
  35.   'iconify NOREQ'             /* Re-iconify if necessary */
  36. end
  37. if quit = yes then do
  38.   'quitspot NOREQ'            /* Close SPOT if we had to open it ourselves */
  39. end
  40.  
  41. exit
  42.