Filter on email address

J

John Clark

Hi,

I am trying to work out how I can filter an Inbox (or
other) folder using an email address. This may sound
simple - "use the SENT field" but that field returns the
alias if it's available rather than the actual email
address, e.g. if I see "John Clark" in the FROM column in
outlook, it won't match "(e-mail address removed)". I am
matching with email addresses held in a database,
therefore no alias is available.

I know the email address is available from the
AddressEntry object but this is not accessible from an
external app. without the user giving permission each
time - impracticle!

Any advice gratefully received
Thanks
John
 
D

Dmitry Streblechenko

On the Extended MAPI level, you need to filter on the
PR_SENDER_EMAIL_ADDRESS or PR_SENT_REPRESENTING_EMAIL_ADDRESS property.
Outlook Object Model won't allow you do that, you will need Extended MAPI,
CDO 1.21 or Redemption.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top