procmail
[Top] [All Lists]

Re: "invalid regexp" What??

2001-05-15 12:16:34
* On [010515 20:37] Jeff Earickson <jaearick(_at_)colby(_dot_)edu> wrote:
help...

   Somewhere in my procmail filtering (I use junkfilter, see
http://junkfilter.zer0.org/) I have some kind of regexp problem that
causes DSNs and bounces to return the following procmail complaint to
outsiders, along with the bounce.  How to get rid of it?  How to make
procmail send errors to /dev/null?   Procmail is my local mail delivery
agent for sendmail, and I'm using 3.15.1.  Thanks...
The return to sender part is probably because procmail can't deliver
the mail at all, quoting from the procmail README:
"Should (in the unlikely event) procmail be unable to deliver your mail
somewhere, the mail will bounce back to the sender or reenter the
mailqueue (your choice)." What is your choice? :-)
I'll see what I can make of this monster below! 
   ----- Transcript of session follows -----
procmail: Invalid regexp "(From:.*Dear
Friend|From:.*Dear\.Friend|From:.*do-not-reply@|Reply-To:(_dot_)*(_at_)cheerful(_dot_)com|SUB
JECT:.*Here you have, ;o)|Subject: Homepage|Subject:.*
                          ^
The marked paren could be the first problem, as I think it closes the
first part of the expression...is this intentional?
-|Subject:.*            [0-9][0-9][0-9][0-9][0-9]$|Subject:.*
[a-z][a-z][a-z][a-z][a-z]$|Subject:.*            \(|Subject:.*
                                                   ^^
What is this trying to achieve exactly? Open another set of parens?
Or, more likely a subject line with lots of spaces and then an opening
"(".
\[|Subject:.*ADV:|Subject:.*AS SEEN ON TV!|Subject:.*All Dreams Can Come
True|Subject:.*Brand New E-Mail pager|Subject:.*Double
Sales!|Subject:.*Financial Freedom!|Subject:.*HERBAL V|Subject:.*Increase
Sales|Subject:.*Net Detective|Subject:.*Please pardon the
intrusion|Subject:.*REQUESTED INFORMATION!|Subject:.*Sell Online
Today|Subject:.*Snowhite and the Seven Dwarfs|Subject:.*Toner
Supplies|Subject:.*Want some extra money|Subject:.*imaging
supplies|Subject:.*laser printer toner|Subject:.*powerful
penis|Subject:.*toner cartridges|To:.*Dear
Friend|To:.*Dear\.Friend|X-Adverti[sz](e)?ment:|X-Mailer:.*BulkMailer|X-Mail
er:.*Mail Bomber)"
                  ^
I think this is the offender!! As you, perhaps inadvertantly, closed
the parentheses earlier in the regexp, this is a trailing, unpaired
")", which _probably_ causes the "invalid regexp" error.
<snip repeat procmail report>
Hope that gets you on the right track

Lawrence
-- 
Lawrence Mitchell | http://members.tripod.co.uk/EVSvienna/
wence(_at_)gmx(_dot_)li      | Too many people want to *have written*.
        -- (Terry Pratchett, alt.fan.pratchett)
_______________________________________________
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>