On Wed, 1 Apr 1998, Daniel R Ehrlich wrote:
One of our faculty recently passed on. I have been asked to set up a
responder for his email that will send a short note back explaining that
the account is no longer active etc and throw away the incoming mail.
The standard UNIX `vacation' program does not do what I want, so I was
wondering if anyone could suggest a procmail recipe that would do this?
Thanks in advance for any help or suggestions.
Untested:
SHELL=/bin/sh
FORMAIL=/path/to/formail
CAT=/path/to/cat
SENDMAIL=/path/to/sendmail
:0
| ( $FORMAIL -r -i"From: Postmaster
<postmaster(_at_)psu(_dot_)edu>" \
-I"Reply-To: Something appropriate" \
-i"Subject: Your correspondent has passed on" \
-A"Precedence: junk"; $CAT somefile) | $SENDMAIL -oi -t
Where somefile is a file giving your message.
This is a slightly modified version of the vacation filter in procmailrc
--
Bore, n.:
A guy who wraps up a two-minute idea in a two-hour vocabulary.
-- Walter Winchell