home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / files / k / pgp / ReadNews / !NewsDir / Scripts / PGPencrypt < prev    next >
Encoding:
Text File  |  1993-05-09  |  611 b   |  28 lines

  1. #Script PGP: sign and encrypt posting
  2. #
  3. # Doesn't matter where you put the pgppath error test, the dialogue box
  4. # pops up.  Aaarrrgh!
  5. #IF "<pgppath>" = ""
  6. #Error   Cannot encrypt posting:   !PGP application has not been seen by the filer
  7. #ENDIF
  8. #arg Posting:
  9. #arg Encrypt to:
  10. #IF "%0%"=""
  11. #Error Please drag a posting onto the field
  12. #EndIf
  13. #IF "%1%"=""
  14. #Error You must specify user IDs for encryption
  15. #EndIf
  16. #output post
  17. #
  18. #os Dir <ReadNews$TempDir>
  19. #task split_msg
  20. #task pgp -esa msg/txt %1%
  21. #include msg/hdr
  22. #include msg/asc
  23. #os remove msg/hdr
  24. #os remove msg/txt
  25. #os remove msg/asc
  26. #os remove !Temp!
  27. #os Back
  28.