home *** CD-ROM | disk | FTP | other *** search
- .bra {
- .ket }
- .key user/a,pass/a,post/a,postpass/a,server/a
-
- ;umspgp
- ;v0.2
- ;9412082147
- ;written by Jochen Borgmann <gio@cyra.westfalen.de>
-
- if not exists ums:pgp/temp
- makedir ums:pgp/temp
- endif
-
-
- ;generate script-mfm
- echo >t:script_begin "sumsprint >ums:pgp/temp/send.data<MsgNum> u=*"{user}*" p=*"{userpass}*" s=*"{server}*" *"msgnum=<msgnum>*" file=ums:pgp/pgp_msg_txt.mfm"
- echo >>t:script_begin "sumsprint >ums:pgp/temp/head.data<MsgNum> u=*"{user}*" p=*"{userpass}*" s=*"{server}*" *"msgnum=<msgnum>*" file=ums:pgp/pgp_from_txt.mfm"
-
- echo >t:script_end "sumswrite u=*"{post}*" p=*"{postpass}*" s=*"{server}*" \<ums:pgp/temp/mail.data<MsgNum>"
- echo >>t:script_end "sumsprint >ums:pgp/temp/send_info.data<MsgNum> u=*"{user}*" p=*"{userpass}*" s=*"{server}*" *"msgnum=<msgnum>*" file=pgp_txt_info.mfm"
- echo >>t:script_end "sumswrite u=*"{post}*" p=*"{postpass}*" s=*"{server}*" \<ums:pgp/temp/send_info.data<MsgNum>"
- echo >>t:script_end "sumsset u=*"{user}*" p=*"{userpass}*" s=*"{server}*" *"msgnum=<msgnum>*" exported,old"
-
- join t:script_begin script_main t:script_end as ums:pgp/pgp_script.mfm
-
-
- ;generate info-mfm
- echo >T:info_begin "ToName {user}"
- echo >T:info_end "{post}"
- join t:info_begin info_main t:info_end as ums:pgp/pgp_txt_info.mfm
-
- delete >nil: ums:pgp/temp/#? quiet
-
- cd ums:pgp
- sumsprint >ums:pgp/temp/pgp_script u="{user}" p="{pass}" s="{server}" "old=0 and msgtext=*"#?-----BEGIN PGP MESSAGE-----#?*" and group=*"*"" file=pgp_script.mfm
-
- execute ums:pgp/temp/pgp_script
-
- delete t:script_begin
- delete t:script_end
- delete t:info_begin
- delete t:info_end
- delete ums:pgp/temp all
- delete ums:pgp/pgp_script.mfm
- delete ums:pgp/pgp_txt_info.mfm
-