Filter on email address

  • Thread starter Thread starter John Clark
  • Start date Start date
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
 
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
 
Back
Top