procmail
[Top] [All Lists]

How do you strip characters from the from?

2004-11-23 04:39:43
I have, which I assume is wrong because its not working:

BLACK=$HOME/.kills
:0:
* ^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+
$MATCH =~ s/\w.*\@//;
* ? grep -i "$MATCH" $BLACK
trash

I know that is actually perl but didn't know what else to try.  What
that should do is strip from the first character to and including the
'@' from the var and then match it against the domain names in
$HOME/.kills but of course it isn't working


____________________________________________________________
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

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