[Mimedefang] SA body filters tagging header contents

alan premselaar alien at 12inch.com
Tue Mar 2 19:46:33 EST 2004


On 04.3.3 7:57 AM, "Michael Haren" <michael at wassupy.com> wrote:
...snip... 
> Now I must ask, does anyone know of any convenient way to scan only the
> body of the message, without the subject? Without creating meta
> rules/etc. I didn't see this as an option.
> 
> As it seems, if you have the same phrase in both the body and subject,
> you cannot tell if it actually appears in the body at all. You can only
> determine that it is in the subject, and _might_ be in the body.
> 
> Of course if it is in the body but NOT in the subject, a metarule will
> help but that's not what I'm going for.
> 
> Any ideas here? I thank you again.
> Michael

Why would you prefer to do it without META rules?  I personally would use
META rules in a manner something like (completely untested, off the top of
my head):

header __LOCAL_SUBJ_FOOEY   Subject =~ /fooey/i
body __LOCAL_BODY_FOOEY /fooey/i

meta LOCAL_MY_FOOEY (__LOCAL_BODY_FOOEY && !_LOCAL_SUB_FOOEY)
score LOCAL_MY_FOOEY 0.1

or something similar... been awhile since i wrote SA rules.

hope this helps

alan



More information about the MIMEDefang mailing list