Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SARE Stock rules, foobarred

Discussion in 'General Discussion' started by nickp666, Sep 22, 2006.

  1. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    769
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    /dev/null
    For those of you running mailscanner,
    Im sure you will have noticed this morning, rulesdujour had a few warnings and errors about a specific ruleset.

    the file in question is /etc/mail/spamassassin/70_sare_stocks.cf and the rule in that file being: SARE_MLB_Stock6

    I am not overly competant with regex's but spamassassin was failing so I had to do something quickly, to get the lint test to run through without error I changed the regex from
    /\b(?:)E\.GL\.y)|(Eg \|_ y)|(e g \| y)|(egly)|.P.\s+.P.\s+.?\s+.T.\s+.L.|.P.\s+.P.\s+.T.\s+.L.|A B S Y|A D\s+Y E|A G.A-O|A M S N|A$ \s*[Tt]\s*[Ll\|]|\(PPT\|_\)|\(pptl\)|\bn.s.?l.t\b|\|\\\| .~. S .~. \|_ .~. T|_N S L T_|__ \|\\\| S L T|`P...`P...`T...`L|cgdc|e g !_ y|f.?c.?y.?i|hlun|r . t .$describe SARE_MLB_Stock6 ML obfuscated ticker symbols

    to:

    /\b(?:) E\.GL\.y)|(Eg \|_ y)|(e g \| y)|(egly)|.P.\s+.P.\s+.?\s+.T.\s+.L.|.P.\s+.P.\s+.T.\s+.L.|A B S Y|A D\s+Y E|A G.A-O|A M S N|A$ \s*[Tt]\s*[Ll\|]|\(PPT\|_\)|\(pptl\)|\bn.s.?l.t\b|\|\\\| .~. S .~. \|_ .~. T|_N S L T_|__ \|\\\| S L T|`P...`P...`T...`L|cgdc|e g !_ y|f.?c.?y.?i|hlun|r/i


    Because I dont have a clue can someone clarify for me that this will actually work (Lint isnt erroring anymore but that doesnt mean to say its right)

    EDIT: F*****G SMILIES
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 nickp666, Sep 22, 2006
    Last edited by a moderator: Sep 22, 2006
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Removed the smilies for you ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...
Similar Threads - SARE Stock rules
  1. saifcoder
    Replies:
    1
    Views:
    209

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice