On 1/5/2023 3:24 AM, Loren Wilton wrote:
You can simplify your rule code a little if you want:
header __LOCAL_FROM_BE From =~ /.\.beauty/i
meta LOCAL_BE (__LOCAL_FROM_BE)
score LOCAL_BE 2
describe LOCAL_BE from beauty domain
to
header LOCAL_BE From =~ /.\.beauty/i
score LOCAL_BE 2
describe LOCAL_BE from beauty domain
The meta isn't really doing anything there, since it only has a single
clause.
Metas are good when you want to combine the results of several matches
with boolean logic.
You might also want to add a \b to the rule:
header LOCAL_BE From =~ /.\.beauty\b/i
Without that the rule will match ".beauty", but also ".beautyrest".
Another thing you might want to consider is using "From:addr" rather
than just "From". As it is, it will match ".beauty" both in the address
and in the person's name description. So it would match:
From: "janice.beautyfull" <j...@cox.net>
Maybe you want that, in wihich a bare "From" is fine.
Ah. Thanks.