procmail
[Top] [All Lists]

recipe question

2002-04-11 12:29:30

Im new to procmail.  I saw a recipe for putting spam sites
into a single (or multiple) files to avoid spam.  It was
something like this:

:0
* ? (formail -x "From:" -x "Sender:" \
        -x "Reply-To:" -x "Return-Path:" -x "To:" \
        | egrep -is -f $HOME/addresses/spamlist.txt)
$MAILDIR/spam

Now I might have something wrong here because when I look at my
log file I get the following:

procmail: Executing " (formail -x "From:" -x "Sender:" \
    -x "Reply-To:" -x "Return-Path:" -x "To:" \
    | egrep -is -f $HOME/addresses/spamlist.txt)"
egrep: regular expression too long
procmail: Program failure (2) of " (formail -x "From:" -x "Sender:" \
    -x "Reply-To:" -x "Return-Path:" -x "To:" \
    | egrep -is -f $HOME/addresses/spamlist.txt)"
procmail: No match on " (formail -x "From:" -x "Sender:" \
    -x "Reply-To:" -x "Return-Path:" -x "To:" \
    | egrep -is -f $HOME/addresses/spamlist.txt)"

my spamlist.txt file looks like this:

abcinc-us\.com
kosejente\.com
ecitnf(_at_)yahoo\(_dot_)com
josephmichaels\.com
alluneedhosting\.com
etracks\.com
fandango\.com
(I wont list them all, but this is the general idea).

Im trying to figure out why egrep reports expression too long.
My file seems reasonable.  Its only 32 lines long.

Thanks in advance,
Jeff

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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