home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
security
/
pgp
/
rnscripts
/
Scripts
/
PGPencrypt
< prev
next >
Wrap
Text File
|
1994-05-18
|
891b
|
39 lines
#Script PGP: sign and encrypt posting
# For ReadNews version 0.3
#
# Doesn't matter where you put the pgppath error test, the dialogue box
# pops up. Aaarrrgh!
#IF "<pgppath>" = ""
#Error Cannot encrypt posting: !PGP application has not been seen by the filer
#ENDIF
#arg Posting:
#arg Encrypt to:
#Args
#IF "%0%"=""
#Error Please drag a posting onto the field
#EndIf
#IF "%1%"=""
#Error You must specify at least one user ID for encryption
#EndIf
#os copy %0% <ReadNews$TempDir>.msg ~c~v
#
#OS set RN$pgp_encrypt_to ""
#repeat
#OS seteval RN$pgp_encrypt_to RN$pgp_encrypt_to + " ""%1%"" "
#shift 1
#until "%1%"=""
#
#os Dir <ReadNews$TempDir>
#task split_msg
#OS set alias$RN_pgp_do "pgp -seat msg/txt <RN$pgp_encrypt_to>"
#task RN_pgp_do
#output post
#include msg/hdr
#include msg/asc
#os remove msg/hdr
#os remove msg/txt
#os remove msg/asc
#os remove msg
#os remove RNTemp
#os Back