#
#
#
# spam/reply "procmailrc" file
#
# TO USE THESE RECIPES, put
# INCLUDERC=$tag_dir/reply
# into your "main" procmail file (after the tag file, and before the
# delete file, if any).
#
# This file will auto-respond to mail that has been tagged with
# a tag indicating that the message is unwanted; BE SURE YOU
# WANT TO DO THIS before you enable this code. You are advised to
# read the text of the complaints that will be sent out,
# for the tag file and
# for the tag-radical file,
# and for any special cases which appear below.
#
# 1996/06/04 Anne Bennett
# - Initial coding
# 1996/09/20 Anne Bennett
# - Collapsed all "ordinary" spams into one action
# - Added "tag-radical" (site ban) support
# 1997/01/07 Anne Bennett
# - Copy of message was not appended properly; fixed
# 1998/12/08 Anne Bennett
# - Remove now-useless special cases moneyworld and agis.
# 1999/11/11 Anne Bennett
# - Added variable for location of includes directory (tag_dir).
# 1999/11/11 Anne Bennett
# - (Last update)
#
# ----------- "spam" series configuration done in "spam/tag"
:0 H
* $ ^$trash_header
* $ ! ^$user_loop
* $ ! ^$sys_loop
{
# In all cases, we'll want to use the same subject header, so
# auto-processors at the other end will work. Aren't we nice!
:0 c
subject=| formail -x "Subject:"
# Figure out who to reply to
:0 c
respondto=| formail -r | head -1
# ===========================================================
# "ORDINARY" mailings tagged as "ordinary" by the "tag" file.
# Avoid auto-responding if the mail was auto-generated, and
# send a standard complaint.
:0 Hc
* ! ^From:.*vacation
* ! ^FROM_DAEMON
* ! ^Precedence: (junk|bulk)
* $ ^$trash_header ordinary
| ( echo "$respondto" ;\
echo "Subject: Re: $subject" ;\
echo "Precedence: junk" ;\
echo "$sys_loop" ;\
echo "$user_loop" ;\
echo "" ;\
cat $aux_dir/Complaint.ordinary ;\
cat $aux_dir/Separator ;\
cat ;\
) | $SENDMAIL -t
# ===========================================================
# "BANNED SITES" mailings tagged as "siteban" by the
# "tag-radical" file. Avoid auto-responding if the mail was
# auto-generated, and send a complaint about the site.
:0 Hc
* ! ^From:.*vacation
* ! ^FROM_DAEMON
* ! ^Precedence: (junk|bulk)
* $ ^$trash_header siteban
| ( echo "$respondto" ;\
echo "Subject: Re: $subject" ;\
echo "Precedence: junk" ;\
echo "$sys_loop" ;\
echo "$user_loop" ;\
echo "" ;\
cat $aux_dir/Complaint.siteban ;\
cat $aux_dir/Separator ;\
cat ;\
) | $SENDMAIL -t
# ===========================================================
# "SPECIAL CASES", in particular where headers were forged
# and there were repeat offenses; respond in all cases.
# see the ISP complaint text
# and the further links for each individual spammer.
# # -------------------------------------------------------
# # 1996/06/04 Anne Bennett
# # moneyworld
# :0 Hc
# * $ ^$trash_header moneyworld
# | ( cat $aux_dir/moneyworld.headers ;\
# echo Subject: Re: $subject ;\
# echo Precedence: junk ;\
# echo $sys_loop ;\
# echo $user_loop ;\
# echo "" ;\
# cat $aux_dir/Complaint.isp ;\
# cat $aux_dir/Separator ;\
# cat $aux_dir/moneyworld.html ;\
# cat $aux_dir/Separator ;\
# cat ;\
# ) | $SENDMAIL -t
# # -------------------------------------------------------
# :0 Hc
# * ! ^From:.*vacation
# * ! ^FROM_DAEMON
# * ! ^Precedence: (junk|bulk)
# * $ ^$trash_header agis
# | ( echo "$respondto" ;\
# echo "Subject: Re: $subject" ;\
# echo "Precedence: junk" ;\
# echo "$sys_loop" ;\
# echo "$user_loop" ;\
# echo "" ;\
# cat $aux_dir/Complaint.agis ;\
# cat $aux_dir/Separator ;\
# cat ;\
# ) | $SENDMAIL -t
# # -------------------------------------------------------
}