Greetings!
I am attempting to parse emails on the fly after a spam filter adds a score to the
headers. (SpamAssassin, if you're curious.)
When I try to find out what the spam score is I am getting a weird error. Here's the
lines that error out:
if ( $msg[$line] =~ '^X-Spam-Level: ***********' ) {
$bad_spam += 1;
}
The score is the number of splats. The more splats, the higher the spam score.
The error I am getting is:
Nested quantifiers before HERE mark in regex m/^X-Spam-Level: ** << HERE *********/ at
/home/filter/grab.pl line 16.
Why am I getting a HERE marker? Do I need to escape all the "*"s? Do I need to do
something else?
I am looking for the string "X-Spam-Level: " followed by 11 or more splats. If I find
it, I need to modify another line in the @msg array (the subject line) and forward the
message on.
Thanx!
-Michael
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]