View Single Post
  #1  
Old December 8th 06, 02:55 PM posted to microsoft.public.outlook.program_vba
Harrow
external usenet poster
 
Posts: 3
Default Custom Rules - Text is the same in 'From' and 'Subject'

I am getting a lot of spam where the Sender and the Subject contain the same
name. The name varies from email to email, but the symptom remains the same -
i.e. whatever the sender name is, this is repeated in the subject as well.
EXAMPLES
Sender - John Smith; Subject - John Smith writes
Sender - Gill Jones; Subject - Gill Jones writes
Sender - Peter Knight; Subject - Tip from Peter Knight

Can anyone help with some code that will search for a string in the 'From'
and compare it to a string in the 'Subject' . If they match, then move to
delete folder.

Thanks
--
ArborGlade
Ads