Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!umich!vela!swood From: swood@vela.acs.oakland.edu ( EVENSONG) Newsgroups: comp.mail.elm Subject: filter-rules and exec Message-ID: <3806@vela.acs.oakland.edu> Date: 12 Nov 90 02:43:40 GMT Reply-To: swood@vela.acs.oakland.edu (Scott Wood - EVENSONG) Organization: Oakland University, Rochester MI Lines: 23 I have been trying to use the filter-rules in elm to send my mail back out to a user group. I was told that I could not simply do a if (suject contains 'stug') then forward stuga as the filters would be executed by root, and the mailer would not recognize the alias stuga. So I started saving to a file, and running a shell program to remail it. I would like to however use the exec command in the filters to remail the messages as they arrive, as that would allow for a much more efficient mailing list. The docs say that the exec will execute a program using the message as input, but as of yet, I have been unable to figure out how the message has to be handled to be redirected to mail. I have already got the first portion of a shell script written to set all the environment variable for root so that my aliases will be used, but I need to know what the heart of the program must do to mail the message (input) out to the alias swood -- ---- Insert favorite .signature here ---- | swood@argo.acs.oakland.edu | swood@vela.acs.oakland.edu Bitnet: swood@Oakland | swood@unix.secs.oakland.edu UUCP: ...!uunet!umich!{vela, argo, unix, nucleus}!swood