On Sun, 3 Feb 2013, Eliezer Croitoru wrote:
On 2/3/2013 7:23 AM, John Hardin wrote:
body __HBRW_CHARS /[\xc0-\xcb\xcd-\xdb\xdf-\xfb]/
tflags __HBRW_CHARS multiple
body __TOTAL_CHARS /\S/
tflags __TOTAL_CHARS multiple
meta __HBRW_PCT ((__HBRW_CHARS * 100) / __TOTAL_CHARS)
meta HBRW_SPAM (__HBRW_PCT < 50) && __HBRW_ENCODING
I don't know whether the division in __HBRW_PCT or the less-than
comparison in HBRW_SPAM would work, that's totally off the top of my
head and untested. I also leave the __HBRW_ENCODING rule as an exercise
for the student. :)
Thanks
I had the __HBRW_ENCODING ready from before.
I think I will use a meta hat will check the mail then the encoding and then
th percentage.
Thanks Again,
Followup note: __TOTAL_CHARS includes punctuation, if you do try this you
might want to do something like this instead:
body __TOTAL_CHARS /[\x30-\x39\x41-\x5a\x61-\x7a\x80-\xff]/
to exclude punctuation, whitespace and control characters.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
If "healthcare is a Right" means that the government is obligated
to provide the people with hospitals, physicians, treatments and
medications at low or no cost, then the right to free speech means
the government is obligated to provide the people with printing
presses and public address systems, the right to freedom of
religion means the government is obligated to build churches for the
people, and the right to keep and bear arms means the government is
obligated to provide the people with guns, all at low or no cost.
-----------------------------------------------------------------------
9 days until Abraham Lincoln's and Charles Darwin's 204th Birthdays