Hi. I'm relatively new to spamassassin and perl scripting, and I must
already be doing a few things wrong that I hoped the list could help me to
solve. I'm receiving the following output when running "spamassassin -D <
spam-test.txt 2>&1|less'

[32692] warn: Number found where operator expected at (eval 607) line 1,
near "0  0"
[32692] warn:  (Missing operator before 0?)

Where is this coming from? Perhaps local.cf, but where? It's not line 607.

I'm also having a problem with one of my rules:

[32692] info: config: invalid expression for rule LOCAL_XPS: "Subject =~
/Free\ DELL\ XPS/i": syntax error

Here is the full rule:

meta       LOCAL_XPS            Subject =~ /Free\ DELL\ XPS/i
score      LOCAL_XPS            1.5
describe   LOCAL_XPS            Rule by AS: XPS Dell

Do I need the backslashes to escape the spaces? Will that match that pattern
anywhere on the line, or only
that text on the line?

Can you explain to me the meaning of '(.+)' as in:

header LOCAL_RULE1      Subject =~ /(.+)Spam\ Sample(.+)/i
score LOCAL_RULE1       5.0
describe LOCAL_RULE1    Subject Spam Sample

How about without the parens?

I believe this is somehow causing emails to hit the "MISSING_SUBJECT" rule,
even though the email clearly
has a subject.

Any help greatly appreciated.
Thanks,
Alex

Reply via email to