crysman
crysman

Reputation: 167

spamassasin config to score empty subject

I am aware of how to set spamassasin to penalize (score) a mail containing a .ZIP file, which goes like this:

mimeheader MY_CNF_ZIP   Content-Type =~ /^application\/zip/
score      MY_CNF_ZIP   1.5

But I am not sure how to write a rule for empty subject (recently more and more spams with empty subject are received...)

Shall this be correct?:

header MY_CNF_EMPTYSUB    Subject =~ /^$/
score  MY_CNF_EMPTYSUB    1.5

Thanks

Upvotes: 0

Views: 744

Answers (1)

Nic0
Nic0

Reputation: 112

Yes this should work like a charm :)

For information, there is a MISSING_SUBJECT rule on SA which check if Subject header field is present are not. But not if present and empty ...

Upvotes: 2

Related Questions