> header __L_MSG_HAS_C_TYPE_M Content-Type =~ /^(message|multipart)/i
> rawbody __L_MSG_HAS_BODY /\S/
>
> describe L_MSG_NO_BODY Raw message does not have any body data
> meta L_MSG_NO_BODY (!__L_MSG_C_TYPE_M && !__L_MSG_BODY)
> score L_MSG_NO_BODY 0.1
>
> BTW, I am doing this so that postfix can trap the rule after the message
> has undergone filtering, so that the message can simply be rejected
> (there's no judgement as to spamminess here, just a check to see if the
> message has any content).

Note that in business circles "content" includes the subject.  As far as I
know, rawbody won't see a subject.  It is fairly common to send one line
questions in the subject with an empty body, and one line replies likewise.

Your rule would dump these mails, which is why the versions I wrote of this
would check for lack of body, subject, and to.  If you don't have a body and
you don't have a subject there isn't much content.  If you don't have a to,
then it is pretty useless.  But just lacking a body isn't imho sufficient to
conclude "content-less".

        Loen

Reply via email to