Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!convex!news From: mascio@convex.COM (John R.S. Mascio) Newsgroups: comp.mail.elm Subject: Re: filters Message-ID: <1991Jan21.171851.12899@convex.com> Date: 21 Jan 91 17:18:51 GMT References: <1991Jan21.160107.14157@en.ecn.purdue.edu> Sender: news@convex.com (news access account) Reply-To: mascio@convex.COM (John R.S. Mascio) Organization: Convex Computer Corporation; Richardson, TX Lines: 33 Nntp-Posting-Host: concave.convex.com In article <1991Jan21.160107.14157@en.ecn.purdue.edu> nichols@en.ecn.purdue.edu (Scott P Nichols) writes: >My problem: > >Is there a way to have the filter do more than one job on a letter? > >i.e. I get mail from somedude@chuck.pu.edu and I want to > a) send him a form thank you _and_ > b) put the mail in my mailbox > >If there is no way *yet* to do this with the elm filter, would >someone possibly have a shell-script for csh that would do the >same thing, that I could run using the EXECUTE command of filter? > I solved this specific problem with the following line (all one line): if ( lines > 1 ) ? execute "tee -a /oper/mascio/mailbox | \ /usr/local/bin/vacation mascio" This put my mail in my mail box while I was on vacation this Xmas, and piped the message into our vacation program which tells the sender that I am not here and what ever message I have in my vacation file. Just replace the last command with whatever appropriate script/binary that will perform the "Thank You" response. JRSM --- mascio@convex.com John Raymond Stone Mascio _ mascio@mcs.kent.edu _|_|_) UNIX SysAdmin - Engineering Operations / Convex Computer Corp (_|_| Disclaimer: My opinions are my own, and in no way reflect Convex's opinions or policies, except accidentially.