procmail
[Top] [All Lists]

Re: Reverting back to a simple blacklist

2004-11-08 11:24:38
On Mon, 08 Nov 2004 00:30:18 -0500, Poohba 
<poohba(_at_)blkpoohba(_dot_)dyndns(_dot_)org> wrote:
Thank you so much for replying.  Now nothing is sent to trash.  -x means
match whole line so does it only match if the whole line in
$HOME/.killfile matches the whole line in From: ? because I am only
matching the domain name.  So, does the domain name need to be in the
From: line or does the domain name need to be the 'only' thing in the
From: line?


I beleive -x will match only if the entire from is listed in the
blacklist.  However, if you want to blacklist on domain you can do
this:

(From Sean)
        :0 h
        CLEANFROM=|formail -IReply-To: -rtzxTo:

        # username portion
        :0
        * CLEANFROM ?? ^\/[^(_at_)]+
        { FROM_USER=$MATCH }

        # domain portion
        :0
        * CLEANFROM ?? @\/.*
        { FROM_DOMAIN=$MATCH }

and then filter/blacklist on FROM_DOMAIN


-- 
 ::::::===   <http://2blog.kreme.com>  ===::::::
 :: Build a man a fire and he'll be warm for  :: 
 :: a night, but set a man on fire and he'll  ::
 :: be warm for the rest of his life.         ::

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail