Filter Email addresses

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to automatically delete any email from a sender or senders that
do not have a "@brown.edu" extension. In other words, if the sender/s are
not from Brown, I want to automatically delete the email. Can a rule or
macro be set up to automatically do this?

Thanks for your help.

Regards,
Frank Jones
 
Am Fri, 25 Nov 2005 07:54:01 -0800 schrieb John Mansfield:

Frank, in OL 2003 you could add a rule that handles all incoming messages
and determine via the Rule Wizard that a script should be executed. Create a
function in "ThisOutlookSession", which needs to look like this:

Public Sub DoSomething(oMail as Outlook.MailItem)
....
End Sub

Within the function check the MailItem.SenderEMailAddress property. If it
doesn´t match what you´re looking for then move the message into
DeletedItems and delete it.
 
Back
Top