RE: Custom rules regex help

2015-10-15 Thread John Hardin
On Thu, 15 Oct 2015, emailitis.com wrote: I have created 2 rules because almost everything from zcsend is Spam. Rules are: # zcsend Spam header CGK_ZCSEND_1 All =~ /\@zcsend\.net/ score CGK_ZCSEND_1 2.5 ...etc. Did you miss the earlier replies to this question? Read the list archives for t

Re: Custom rules regex help

2015-10-15 Thread Bowie Bailey
On 10/15/2015 11:01 AM, emailitis.com wrote: I have created 2 rules because almost everything from zcsend is Spam. Rules are: # zcsend Spam header CGK_ZCSEND_1 All =~ /\@zcsend\.net/ score CGK_ZCSEND_1 2.5 # zcsend Spam header CGK_ZCSEND_2 From =~ /\@zcsend\.net/ score CGK_ZCSEND_2 2.5 a

RE: Custom rules regex help

2015-10-15 Thread emailitis.com
I have created 2 rules because almost everything from zcsend is Spam. Rules are: # zcsend Spam header CGK_ZCSEND_1 All =~ /\@zcsend\.net/ score CGK_ZCSEND_1 2.5 # zcsend Spam header CGK_ZCSEND_2 From =~ /\@zcsend\.net/ score CGK_ZCSEND_2 2.5 and extract from maillog is: /roo

Re: Custom rules regex help

2015-10-12 Thread John Hardin
On Mon, 12 Oct 2015, Bill Cole wrote: Your "All" rule will only match a header named "All" which is unlikely to exist. If you want it to match against all headers, you MUST use 'ALL' rather than 'All' or 'all' or any other capitalization pattern. Ugh, I missed that nuance... -- John Hardin

Re: Custom rules regex help

2015-10-12 Thread Bill Cole
On 12 Oct 2015, at 14:01, Bill Cole wrote: Your "All" rule will only match a header named "All" which is unlikely to exist. Clarifying: it would match a header named with any capitalization pattern of "All" because individual header names are matched case-insensitively, but it won't match t

Re: Custom rules regex help

2015-10-12 Thread Bill Cole
On 12 Oct 2015, at 12:41, emailitis.com wrote: Can a regex expert help me identify why that did not trigger one of the CGK_ZCSEND_x rules? Not without seeing the headers of the message in question *as they are seen by SA*. However, I can offer a few generic tips: Header rules match against

Re: Custom rules regex help

2015-10-12 Thread John Hardin
On Mon, 12 Oct 2015, emailitis.com wrote: I have created 2 rules because almost everything from zcsend is Spam. Rules are: # zcsend Spam header CGK_ZCSEND_1 All =~ /\@zcsend\.net/ score CGK_ZCSEND_1 2.5 # zcsend Spam header CGK_ZCSEND_2 From =~ /\@zcsend\.net/ score CGK_ZCSEND_2 2.5 You're