Hi

I have received quite a few messages where my own address was used as
the from address.  While most of those are now caught by other filters
I'd like to add a check for this.

Right now I have the following in ~/.spamassassin/user_prefs:
header    LOCAL_TEST_RULE  From =~ /(?<!Bram\sMertens)\s<[EMAIL PROTECTED]>/
score     LOCAL_TEST_RULE  0.1
describe  LOCAL_TEST_RULE  Is someone faking to be me?

I'll explain what I want the regex to be doing:
Whenever I receive an e-mail I sent myself (from mailing list etc.) the
from header should be:
From: Bram Mertens <[EMAIL PROTECTED]>

This rule should catch all messages that look like:
From: "roger" <[EMAIL PROTECTED]>
Where '"roger"' can be anything other than 'Bram Mertens'

I haven't tested this thoroughly yet but I'd like your
comments/suggestions: are there any big mistakes in this rule?

TIA
-- 
# Mertens Bram "M8ram"   <[EMAIL PROTECTED]>     Linux User #249103 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB      i686                256MB RAM #
#  11:05pm  up 36 days  2:44,  6 users,  load average: 0.24, 0.13, 0.10 #

Reply via email to