Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Custom Rules - Text is the same in 'From' and 'Subject' (http://www.outlookbanter.com/outlook-vba/34868-custom-rules-text-same-subject.html)

Harrow December 8th 06 02:55 PM

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


All times are GMT +1. The time now is 11:58 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com