home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
files
/
comm
/
mail
/
listserv
/
s
/
sendsecuremailinglist
< prev
Wrap
Text File
|
1994-03-08
|
1KB
|
44 lines
/* SendSecureMailingList
*
* written by Peter Simons
*/
parse arg listname
tmpname = 'T:'listname'.tmp'
tmpname2 = 'T:'listname'_new.tmp'
tmpname3 = 'T:'listname'_dec.tmp'
if (open(tmpfile, tmpname, "w")) then do
do forever
line = readch(stdin, 64000)
writech(tmpfile, Line)
if eof(stdin) then break
end
close(tmpfile)
end
command = "PGPMore <" || tmpname || " >" || tmpname3
address COMMAND command
command = "Delete " || tmpname
address COMMAND command
command = "ListSERV:c/Cat <" || tmpname3 || " >>ListSERV:secretgroups/" || listname || "/Log"
address COMMAND command
command = "rx ListSERV:s/MailListFilter <" || tmpname3 || " " || listname || " >" || tmpname2 || " LimitXHeaders"
address COMMAND command
if (exists("ListSERV:secretgroups/" || listname || "/Signature")) then do
command = "ListSERV:c/Cat <ListSERV:secretgroups/" || listname || "/Signature >>" || tmpname2
address COMMAND command
end
command = "ListSERV:c/EncListMail <" || tmpname2 || " ListSERV:secretgroups/" || listname || "/list"
address COMMAND command
command = "Delete " || tmpname2 || " " || tmpname3
address COMMAND command