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 2021 Outlook-2021 (64-bit) and iCloud-for-Windows v13.0 - It Works Good. Using Outlook 12
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 Custom Contact card - need help creating one Outlook VBA and Custom Forms 1
D Lifelong Windows user - new to Mac - Help!!! Using Outlook 3
L Help: set flag for sent mail to check if received an answer Outlook VBA and Custom Forms 2
Nufc1980 Outlook "Please treat this as private label" auto added to some emails - Help. Using Outlook 4
I Help with Smart Folder + Query Builder on IMAP Using Outlook 0
S Outlook 2002- "Send" button has disappeared. Help please. Using Outlook 1
A Outlook 2019 Help with forwarding email without mentioning the previous email sender. Outlook VBA and Custom Forms 0
Witzker Outlook 2019 HELP to get Template Path in a Function Outlook VBA and Custom Forms 2
CWM330 Outlook 365 HELP! Calendar Craziness! Using Outlook 5
S Outlook 365 Help me create a Macro to make some received emails into tasks? Outlook VBA and Custom Forms 1
e_a_g_l_e_p_i Has nobody used Office 2021 enough to help me or have you given up on me.......lol Using Outlook 1
X Open Hyperlinks in an Outlook Email Message (Help with Diane's solution) Outlook VBA and Custom Forms 3
L Help connecting to hosted exchange server 2016 Using Outlook 0
B Seeking help with Outlook rule Using Outlook 2
D Need help with MS Authenticator Using Outlook 4
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
FryW Need help modifying a VBA script for in coming emails to auto set custom reminder time Outlook VBA and Custom Forms 0
S.Champ Please help? I've imported a random workcalendar I dont even know who's. Can I undo it? and then I need to re-sync the google one again. Its a mess:( Using Outlook 2
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

Similar threads

Back
Top