On 12/5/2014 11:25 AM, John Hardin wrote:
FWIW: here's the rule I came up with ... seems to work adequately.
header __COUNT_SUBJ Subject =~ /.*/
You might want to be a little bit more paranoid and explicitly anchor that:
header __COUNT_SUBJ Subject =~ /^.*$/
I know .* is greedy and shouldn't overlap on multiple matches, but this helps
make sure.
I tried that originally, but it didn't end up matching.
Oddly, when I put the original rule "/.*/" in place, and ran a message with
multiple subject lines through in debug ... I got the following relevant output:
Dec 5 12:09:52.032 [2459] dbg: rules: ran header rule __COUNT_SUBJ ======> got hit:
" The Hottest Smartphones - Details Inside "
Dec 5 12:09:52.032 [2459] dbg: rules: ran header rule __COUNT_SUBJ ======> got hit:
"negative match"
Dec 5 12:09:52.032 [2459] dbg: rules: ran header rule __COUNT_SUBJ ======> got hit:
"negative match"
Dec 5 12:09:52.032 [2459] dbg: rules: ran header rule __COUNT_SUBJ ======> got hit:
"negative match"
Dec 5 12:09:52.033 [2459] dbg: rules: ran header rule __COUNT_SUBJ ======> got hit:
"The Hottest Smartphones - Details Inside"
Dec 5 12:09:52.033 [2459] dbg: rules: ran header rule __COUNT_SUBJ ======> got hit:
"negative match"
I'm assuming "negative match" means that the rule didn't match.
The message in question has 4 subject lines, the first appears to be encoded, 2
more that are blank, the 4th one is plain text.
Example: http://code.midrange.com/4c731ced97.html
Not sure why the rule is being applied 6 times.
david
--
IBM i on Power Systems: For when you can't afford to be out of business!
I'm riding a metric century (100 km / 62 miles) in the 2015 American Diabetes
Association's Tour de Cure to raise money for diabetes research, education,
advocacy, and awareness. You can make a tax deductible donation to my ride by
visiting http://email.diabetessucks.net. My goal is $5500 but any amount is
appreciated.
See where I get my donations from ... visit
http://email.diabetessucks.net/mapdonations.php for an interactive map (it's a
geeky thing).