Re: Filter Email addresses



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.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook



> 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
.



Relevant Pages

  • Antwort: Antwort: AW: Antwort: AW: Antwort: Re: strange ICMP - packets from node
    ... Best regards, ... Bitte antworten an IBM AIX Discussion List ... Hi frank, ... in error) please notify the sender immediately and destroy this e-mail. ...
    (AIX-L)
  • Re: excel page numbers
    ... I guess you (Frank) were commenting on it and not the author. ... > "Tom Ogilvy" schrieb im Newsbeitrag ... >> Regards, ... >>>>> want in a cell in that range. ...
    (microsoft.public.excel.programming)
  • RE: Alias-Spaltenbezeichner wird nicht akzeptiert
    ... > dann möchte ich dich bitten, die nachfolgende View mal ... > durchzusehen. ... private void button1_Click(object sender, System.EventArgs e) ... Dipl.Inf. Frank Dzaebel ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • =?Utf-8?Q?Re:_Desktop-Eigenschaften_=C3=A4ndern?=
    ... private void OnDeactivated(object sender, EventArgs e) ... in welchem ich diesen Code habe ist auf ... "Frank Dzaebel" schrieb: ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: Unterbrechen von Schleifen
    ... weiterhin Events verarbeitet. ... private void btnAbbrechen_Click(object sender, EventArgs e) ... Dipl.Inf. Frank Dzaebel ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)