# Vacation procmailrc 1.2 1999-12-15 Bennett Todd # # 1.2: Collapsed X-.*-list and X-Mailing-List into X-.*-[Ll]ist, thanks to # Ruud H.G. van Tol # # 1.1: At the prodding of David Tamkin removed some patterns that were # actually covered by FROM_DAEMON, the regexp from hell. Added this # big block comment to the top. # # 1.0: Inspired by helpful examples from procmailex(5). Added patterns to # match every mailing list I know of. # # To use: # # (1) Edit the bottom if you want to do anything besides default into a local # delivery; # (2) If you aren't postmaster, edit the Bcc in the formail invocation to # point at you; # (3) Install in ~user/.procmailrc; if they already have one, insert this just # above the final delivery (after all their mailing list filing and spam # filtering is done); # (4) If needed, add "|procmail" with however much punctuation noise seems # yummy to their .forward file; # (5) Test by sending them a message and eyeball the returned result; # (6) Send them a second test and make sure you don't get a second reply; # (7) Eyeball the resulting .procmail-log, and if all looks beautiful then # #-out the VERBOSE line; # (8) Keep an eye on those blind copies of the vacation announcements, rogue # vacation spammers make your whole site look like a pack of idiots. LOGFILE=$HOME/.procmail-log VERBOSE=on :0 Whc: vacation.lock * !^Approved-By: * !^BestServHost: * !^FROM_DAEMON * !^List-Id: * !^Resent-Message-ID: * !^Resent-Sender: * !^Sender: .*-errors@ * !^Sender: owner- * !^TOnev(_at_)bostic(_dot_)com * !^X-.*-[Ll]ist: * !^X-Authentication-Warning: * !^X-Listprocessor-Version: * !^X-Loop: * !^X-Mailman-Version: * !^X-Sent-To: * $^To:.*$LOGNAME | formail -rD 8192 vacation.cache :0 ehc | (formail -rI"Precedence: junk" \ -A"Bcc: postmaster" \ -A"X-Loop: $LOGNAME(_at_)$HOST" \ ; \ cat $HOME/reply \ ) | $SENDMAIL -t # Do whatever you want with the # message here