From il.us.swissbank.com!nicolas_scharnagl Fri Feb 7 18:00:51 1997 Return-Path: Received: by leibniz.math.fu-berlin.de (Smail3.2) from swissbank.swissbank.com (146.180.1.2) with smtp id ; Fri, 7 Feb 1997 17:30:04 +0100 (MET) Received: by swissbank.swissbank.com with UUCP (4.1/BK-1.9) id AA12230; Fri, 7 Feb 97 10:30:21 CST Received: from il.us.swissbank.com by keymaster.swissbank.com with SMTP (8.6.12/BK-1.12) id KAA18172; Fri, 7 Feb 1997 10:29:10 -0600 Received: from op1p315swk.ch.swissbank.com by il.us.swissbank.com (4.1/SBCW oconnor v1.10 97/01/29) id AA09713; Fri, 7 Feb 97 10:28:19 CST Received: from op1p315swk (localhost) by op1p315swk.ch.swissbank.com (4.1/SMI-4.1) id AA21247; Fri, 7 Feb 97 17:29:38 +0100 Sender: nicolas_scharnagl@il.us.swissbank.com Message-Id: <32FB5865.41C67EA6@swissbank.com> Date: Fri, 07 Feb 1997 17:29:25 +0100 From: Nicolas Scharnagl Organization: left blank X-Mailer: Mozilla 3.0 (X11; I; SunOS 4.1.3_U1 sun4m) Mime-Version: 1.0 Newsgroups: comp.mail.misc To: guckes@math.fu-berlin.de Subject: Re: How to auto respond a mail by subject? References: <32f8f060.1443055@news.deltanet.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Length: 1374 Lines: 54 Status: RO I think he was talking of an autoreply, not just forward. try this one. The autoreply message is stored in $HOME/.autoreply.specialfriends , but could also be put together on the fly. :0 = * ^Subject.*keyword = * !^X-Loop: yourmail | formail -r -A"Precedence: junk" \ | formail -A"Cc: yourmailfortesting \ | formail -A"X-Loop: yourmail" \ | formail -A"X-URL: http://www.hijack.org/reemtsma/" \ | ( formail -A"X-Mailer: procmail autoreply" ; cat $HOME/.autoreply.specialfriends ) \ | $SENDMAIL -oi -t Sven Guckes wrote: > = > kloak@usa.net=AE (Terrance Xavier): > > I'm trying to make an auto reply mail message when my shell account > > receives an incoming email with a certain subject heading. > > Can this be done with Pine or some other UNIX shell program? > = > You need a mail filter for this. Pine is NOT a mail filter. > = > > I would like any incoming mail with the subject "whatever" be automat= ically > > replied with an email message that I supply. However, I want all inco= ming > > email without the subject header "whatever" to NOT be auto replied. > = > In that case you must setup a rule for the filter, eg: > = > ELM's filter: > if (subject contains "keyword") then forward address > = > procmail: > :0 > * ^Subject: .*keyword > ! address > = > Note: It is possible to keep a copy of forwarded mail, too. >