A little bit of help with headers please?

Status
Not open for further replies.

docH

Member
Outlook version
Email Account
POP3
I am developing a contact form application that detects emails arriving into a certain email address. The MSOutlook client sees several email addresses and I am only interested in one of them.

To detect if the incoming email needs processing I use MAPI to compare the value of the header PR_RECEIVED_BY_EMAIL_ADDRESS with the address I am interested in, say fredbloggs@mydomain.co.uk and when it matches I know its one to be processed.

On my development machine (not connected to exchange) this works OK but on a machine that is connected to MSexchange the value of PR_RECEIVED_BY_EMAIL_ADDRESS is something like /O=INSTITUTIONNAME/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=FREDBLOGGS so my comparison fails and I don't see it as needing processing.

Please can someone explain the format of the PR_RECEIVED_BY_EMAIL_ADDRESS header? Can I always assume that the last part of it will be equal to the name before the @ symbol in the email address - and therefore I can use that to detect my special emails?

Also, does PR_RECEIVED_BY_EMAIL_ADDRESS still exist in 2007 2010 etc?

Finally, if this is not the best way to do this, what is a better way?

Howard
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
P Task display now leaves little room for notes Using Outlook 10
C What happen to the little grey icons at the bottom Using Outlook 5
P Outlook 2013 not showing little colored square as to peoples availability Using Outlook 5
V Outlook 2016 Does Outlook-2016 (64 bit) work with iCloud for Windows ? Using Outlook 5
Phillip Bit.ly emails Using Outlook 1
M Outlook 2010 Problem with OutLook 2010 32 bit, after Windows Auto Update Using Outlook 3
A Office 2016, 32 vs 64 bit Using Outlook 1
M 32 bit to 64 bit Using Outlook 3
S Outlook 2010 32-bit Shared folders Using Outlook 1
Commodore Office 2013 64-bit over 2010 32-bit Using Outlook 11
A Yearly Calendar in Outlook 2010 64 bit. Using Outlook 1
E Need a bit of education on how Outlook works please Using Outlook 3
R 2013 64-bit Due times (deadlines) on tasks: how to set Using Outlook 1
A Exchange 2003 Outlook 2010 64 Bit- AutoDiscover Connection Err - Certificate Exchange Server Administration 9
D Particular Facebook "Hyperlink" Issue In Office 2010 Outlook (32 bit) Using Outlook 5
K CPA - Office 2010 - 64 bit Questions Using Outlook 1
Commodore 64-bit or 32-bit on 64-bit Win7? Using Outlook 0
W Calendar Printing with Outlook 2010 (64 bit) Using Outlook 1
J Junk email filer stopped working in Outlook 2010 (32 bit) on a 64-bit Win 7 PC Using Outlook 12
I Send Secure Email Through Microsoft Outlook 2007 and 2010 (32 bit) Using Outlook 0
I Send Secure Email Through Microsoft Outlook 2007 and 2010 (32 bit) Using Outlook 0
C MAPI to access a 64 bit Outlook from a 32 bit application; or access via ODBC Using Outlook 0
K Outlook 32-bit Connector and Outlook not displaying the folders Using Outlook.com accounts in Outlook 10
J 32-bit app using 64-bit Outlook COM objects? Outlook VBA and Custom Forms 3
J 64-bit version of Redemption? Outlook VBA and Custom Forms 2
H Fail to install BCM 2007 (English) on Windows 7 64 bit (Danish) BCM (Business Contact Manager) 3
S Archive bit in email messages? Outlook VBA and Custom Forms 3
S HTML to Plain Text Macro - Help Outlook VBA and Custom Forms 1
e_a_g_l_e_p_i Outlook 2010 Help setting up Gmail account in Outlook 2010 Using Outlook 3
N Help creating a VBA macro with conditional formatting to change the font color of all external emails to red Outlook VBA and Custom Forms 5
Y Filter unread emails in a search folder vba help Outlook VBA and Custom Forms 0
L Need help modifying a VBA script for emails stuck in Outbox Outlook VBA and Custom Forms 6
F Microsoft Outlook Connector 14.0.6123.5001 - Help! Using Outlook 6
witzker Pls help to change the code for inserting date in Ol contact body Outlook VBA and Custom Forms 5
R Disable conversation thread from replying of recipients in the same subject. Please help Using Outlook 0
R seperate read layout to design in outlook 2016..Help!! Outlook VBA and Custom Forms 3
O Help .. got lost ... installing Office like 2016 Using Outlook 5
A Arthur needs help with 2007 Outlook e-mail Using Outlook.com accounts in Outlook 3
R Help Revising VBA macro to delete email over different time span Outlook VBA and Custom Forms 0
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
L Attachment saving and tracking - PLEASE help! Outlook VBA and Custom Forms 5
I Help with dates in task list. Using Outlook 5
C need help setting up outlook first time Using Outlook 1
K To do bar help Using Outlook 8
M Help sending email but removing signature via VBA Outlook VBA and Custom Forms 5
S help with outlook scripting Outlook VBA and Custom Forms 4
J Help Please!!! Outlook 2016 - VBA Macro for replying with attachment in meeting invite Outlook VBA and Custom Forms 9
EmelineGueguen Help to understand the problem of work Using Outlook 1
N Outlook Forms Help Outlook VBA and Custom Forms 2
N Need help syncing contacts to iPhone X Using Outlook 8

Similar threads

Top