Re: [SAde] Regelgebastel

Florian Hannemann <[email protected]>
Newsgroups gmane.mail.spam.spamassassin.devel.de
Message-ID <[email protected]>
[email protected] wrote:
> Hi,
> 
> wie mache ich eine Regel, die anschlägt, wenn To: nicht die Form hat:
> 
> "Vorname.Nachname" <[email protected]>
> 
> Meine RE-Kenntnisse sind drastisch überfordert!
> 
> Wolfram

moin

also eine quick and dirty version würde so aussehen:

header   __DE_FROM_richtig_1   	From =~ 
/[A-Z]{3,}.[A-Z]{3,}\@[A-Z]{3,}.[A-Z]{2,3}/i
header   __DE_FROM_richtig_2   	From =~ 
/<[A-Z]{3,}.[A-Z]{3,}\@[A-Z]{3,}\.[A-Z]{2,3}\>/i
header   __DE_FROM_richtig_3   	From =~ /"[A-Z]{3,}\s[A-Z]{3,}"\s/i

meta	 DE_FROM_richtig_1	(!__DE_FROM_richtig_1)
describe DE_FROM_richtig_1	From: [email protected]
score    DE_FROM_richtig_1	0.001

meta	  DE_FROM_richtig_2	(!__DE_FROM_richtig_2)
describe  DE_FROM_richtig_2	From: <[email protected]>
score     DE_FROM_richtig_2	0.001

meta  DE_FROM_richtig_3	(!__DE_FROM_richtig_3 && !__DE_FROM_richtig_2)
describe DE_FROM_richtig_3 From: "vorname nachname" 
<[email protected]>
score DE_FROM_richtig_3	0.001


naja damit würdest du aber min. 2 probleme haben.
1. schlagen immer 2 regeln an.
2. was machst du wenn jemand vorname zweitervorname nachname oder einen 
doppelten nachname oder im namen seinen kompletten namen hat und in der 
mail adresse nur [email protected] hat?

cu floh




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.