Filtering incoming mail with VBA

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I'm using Outlook 2002 SP-1 and have written a simple VBA program to extract
the senders email address by creating a reply from the original message,
then taking the recipients collection and getting the senders email out of
that. Then I compare it to my list and decide whether or not to delete it.

It works ok, though fairly slow, but I have to keep authorizing access to
stored e-mail addresses manually. The most I can authorize for is 10
minutes so it gets very annoying.

Is there a way to progamatically enter in my user and password information
to allow my program access? Or, can I change the selections in the Outlook
message box for authorizing the program access to include a longer time
period?

Thanks in advance for your help.

Dave Scott
 
One thing to be aware of about using a reply address, it might not be
the From address. You can set a different reply address in the
message's options when you send it. Look at the Redemption Web site
for an example of code that gets the actual From address.
 
Back
Top