procmail
[Top] [All Lists]

Problems with To: line recognition (oh, and hello)

1997-12-03 09:55:08

I'm building a relatively mild set of filters on my Unix shell account, and
subscribed to this list the other day to pick up some tips and occasionally
beg for help.  ;)

My system is loosely based on Lars Wirzenius's setup (hi Lars), but without
the whitelist or password functions.  Most of it works fine, by the following
system:

1)  If it's a known bozo or MAKE-MONEY-FAST catchphrase, kill it.
2)  If it's a mailing list, direct it to a file.
3)  If it's not directly addressed to me, it's spam, direct it to a file.
4)  If it's sent to one of my Usenet-posting hostnames and doesn't have
        References: or In-Reply-To: in it, it's spam, file it away.
5)  Deliver remaining mail normally.

All of it works fine, with the occasional exception of #3.  If I deliberately
change my MYADDR in .procmailrc and mail myself, so that it'll be to the
"wrong" address, it sends it to emailspam in my $MAILDIR and logs it.
This has also worked just fine for most of the spam that's come in since
I put the filters in.  However, two pieces leaked through today, with the
following To: lines:

To: MoneyMaker18(_at_)juno(_dot_)com
To: rrrt(_at_)pine(_dot_)kangwon(_dot_)ac(_dot_)kr

which is NOT supposed to happen.

The code in question is as follows:

:0 W
* !$ ^TO$MYADDR

{
        :0 c
        | (grep -iE '^From|^Subject: [etc.]  ' ; echo '') >> $MAILDIR/.elog

        :0 W: $MAILDIR/emailspam.lock
        $MAILDIR/emailspam
}

where

MYADDR=vsp(_at_)netaxs(_dot_)com|vsp(_at_)unix1(_dot_)netaxs(_dot_)com|vsp(_at_)unix2(_dot_)netaxs(_dot_)com|[etc.]
MAILDIR=$HOME/mboxes

I looked in procmail.log, and got the cryptic phrase "Where are you?"
repeated six times.

Any thoughts on where my problem might be will be greatly appreciated.

                        jeff.  still new to this stuff.

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