Selcuk Yazar: > Actually > > My example is wrong . i wantto find special word in email address name and > domain part.esp. company name > > For me > > "Satchell" <spamfilter(at)satchell.net> > > address is ok but > > "Satchell" <spamfilter(at)blablabla.ru> is > > address that i try to find.
If you want to do this for only a few recipients: if /^From: *DISPLAYNAME1/ /emailaddress_1/ DUNNO /emailaddress_2/ DUNNO ... /emailaddress_n/ DUNNO /(.+)/ Reject bad email address in $1 endif Where DISPLAYNAME1 is a display name in a header ("Satchell") and emailaddress_1 etc. match the email addresses that you expect to see for that display name. If you want to do this for many recipients, then I expect that header_checks will become unmanageable. What happens when different people have the same name? They will have the same name but different email addresses, and would not be able to communicate. Wietse