At 16:27 2009-05-13 +0200, buro bjorn wrote:
I found a recipe mentioned on this list
(<http://markmail.org/message/itmx5xyygrmopks5>http://markmail.org/message/itmx5xyygrmopks5)
for sorting mailinglists automatically.
I tried to adapt the script
(<http://pastie.org/476832>http://pastie.org/476832)
FTR, sing a clipboard website makes it difficult to make comments to
specific lines of code...
The 9876543210^0 is a "maximal" score - anything that exceeds 2 to the 31st
power (circa 2.1 billion) does, but this particular value is easy to
remember and key in, being a simple sequence.
Next, both the first recipe and the one that follows it, have no apparent
ACTION lines. Actually, they do, but they're tacked onto the end of the
last condition line, which means they're evaluated as if part of THE CONDITION.
Futher in, I note you have opening braces for several recipes starting on
the condition line. That's not valid. Might be fine in perl and C, but it
isn't valid for procmail.
With so many glaring syntax errors, it's tough to justify examining the
rules any deeper than that.
procmail: Invalid regexp "^(List-Post:[
]*(<mailto:)?|List-Owner:[]*(<mailto:)?owner-) \/[-A-Z0-9_+]+"
Looks like your cut-n-paste lost spaces and tabs somewhere - the empty
character class after List-Owner is suspicious. Quite often, the brackets
enclose a space and tab.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
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