procmail
[Top] [All Lists]

Re: Use of procmail and procmailrc

1997-06-30 10:01:00
On 30 Jun 1997 17:21:22 +0100, Sarah Phibbs
<sarah(_dot_)phibbs(_at_)oum(_dot_)ox(_dot_)ac(_dot_)uk> wrote:
Someone here is working abroad for 3 months,and wants to
send a message to anyone who tries to email him saying that
he is away, and then he wants to delete the incoming
message.  He does not want to save a copy of any of his
incoming mail.

I have used the .forward file to set up a vacation message,
and then to invoke procmail.  The .forward file reads thus:-
\ssimpson,"|vacation ssimpson"
"|IFS=' ' exec /usr/local/bin/procmail -f-||exit 75"

If you don't want to store the original message, you don't need
procmail for that. Anyhow, the \ssimpson will bypass Procmail anyway,
and save a message to ssimpson's mailbox no matter what.
  Just take out everything you don't need, and you're left with

"|vacation ssimpson"

Having said that, you can construct much more spectacular vacation
recipes with Procmail. ;-) And vacation should probably be set up so
as to not respond to the same recipient many times in a short period
of time. (See the vacation manual for details.)

:0
/dev/nul

/dev/null has two ells. Not that it matters now. 

Hope this helps,

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

<Prev in Thread] Current Thread [Next in Thread>