On 06/08/2018 06:17 PM, John Hardin wrote:
Apparently:  (?=...) is true if it matches anywhere after that point, but it is a zero width assertion. So it matches if it occurs in the ".*" prior to the Y bit, and it also matches if it occurs *after* the Y bit. The cool part is it includes a capture, so it will pull out matching text before *or* after the Y bit that can be used in the rest of the expression...

Thank you for unrolling that for me.

Learn something new every day.

I always consider that to be a good thing.

I will have to play with that and see if I can simplify some of my multiple-header-match rules and get from-in-subj to work regardless of the header order.

I'll see if I can't leverage that to compare the Return-Path: and From: headers to see if they are the same. I'd like to add one (or more) point(s) to the spam score if they are different.

I do have some mental logic to compare parent / sibling domains as well as checking the Sender: header.

Thanks!

Yes, thank you for sharing RW.



--
Grant. . . .
unix || die

Reply via email to