Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   SMTP address of Exchange recipient (http://www.outlookbanter.com/outlook-vba/54271-smtp-address-exchange-recipient.html)

Bill August 8th 07 04:59 PM

SMTP address of Exchange recipient
 
I have Googled this forum and found near-matches to this request, so I
apologize if it's been answered to death. I have multiple email addresses
in my Exchange account here. If I receive an email from outside our domain,
is it possible for me to know if it was sent it to or
, or ?

Thanks,

Bill Le May
Outlook 2003



Dmitry Streblechenko August 8th 07 06:56 PM

SMTP address of Exchange recipient
 
I can only think of fparsing the PR_TRANPORT_MESSAGE_HEADERS property (you
can see its value in the UI when you RMB on a message and click Options).

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

"Bill" wrote in message
...
I have Googled this forum and found near-matches to this request, so I
apologize if it's been answered to death. I have multiple email addresses
in my Exchange account here. If I receive an email from outside our domain,
is it possible for me to know if it was sent it to or
, or
?

Thanks,

Bill Le May
Outlook 2003




Bill August 8th 07 07:38 PM

SMTP address of Exchange recipient
 
"Dmitry Streblechenko" wrote...

I can only think of fparsing the PR_TRANPORT_MESSAGE_HEADERS property (you
can see its value in the UI when you RMB on a message and click Options).


Thank you Dmitry. I would like to use that property to create a View or
Filter that will show me emails addressed to one specific email address.
Is it possible to specify this property as a search criteria in a DASL View
Filter?



Dmitry Streblechenko August 8th 07 07:49 PM

SMTP address of Exchange recipient
 
No, the address is not stored as a separate property.
You should however be able to create a rule that checks for a particular
substring ") in the transport mesage headers and sets a
property that you can use in a view or in a filter.
I have a bunch of rules that move messages to separate folders based on an
address in the transport header.

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

"Bill" wrote in message
...
"Dmitry Streblechenko" wrote...

I can only think of fparsing the PR_TRANPORT_MESSAGE_HEADERS property (you
can see its value in the UI when you RMB on a message and click Options).


Thank you Dmitry. I would like to use that property to create a View or
Filter that will show me emails addressed to one specific email address.
Is it possible to specify this property as a search criteria in a DASL
View Filter?




Bill August 8th 07 08:25 PM

SMTP address of Exchange recipient
 

"Dmitry Streblechenko" wrote in message
...
No, the address is not stored as a separate property.
You should however be able to create a rule that checks for a particular
substring ") in the transport mesage headers and sets a
property that you can use in a view or in a filter.
I have a bunch of rules that move messages to separate folders based on an
address in the transport header.


I thought that since the SQL tab in Filters can specify criteria like this:
(
("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/811c000b"= 0)that I could do something similar to find the To field.


Bill August 8th 07 08:44 PM

SMTP address of Exchange recipient
 
OK, here's what I put in the SQL tab:

"http://schemas.microsoft.com/mapi/proptag/0x007D001E" LIKE '%bill.lemay%'

This appears to work.

Thanks,

Bill Le May




All times are GMT +1. The time now is 08:44 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com