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
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 4
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 Calendar Printing Assistant 1
Commodore 64-bit or 32-bit on 64-bit Win7? Using Outlook 0
W Calendar Printing with Outlook 2010 (64 bit) Calendar Printing Assistant 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
M Resetting Outlook 2010 32 bit and restarting all over again. Using Outlook 1
L Problems with Not Responding Message in Outlook 2007 Windows 7 64 bit Using Outlook 1
O Outlook Today Customization not saving in Outlook 2010 32-bit Using Outlook 9
R Can not import dbx files from outlook express into outlook 2003 after installing windows 7 64 bit Using Outlook 1
S Windows 7 64 Bit and Outlook 2007 issues Using Outlook 2
A Microsoft office home and business.Is there a 64 bit program?__ Using Outlook 2
T Can Windows 7 64 bit Outlook 2007 be set up to sync with Apple Mobile me? Using Outlook 2
T Can Outlook 2007 calendars, contacts, etc on a Windows 7 64 bit computer be transfered to Outlook 2007 Windows 7 32 bit computer? Using Outlook 6
D In Outlook 2007 on Windows 7 64 bit Customize Current View 'Other Settings' Fonts changes do not hold Using Outlook 2
S 64-bit Outlook Social Connector WLM Using Outlook 5
S Re: outlook 2010 / win 7 (32-bit) / junk email reporting add-on Using Outlook 9
M outlook view control (outlook 2010 64 bit) in internet explorer (32bit mode) Using Outlook 3
R Fax Transport Outlook 2010 (32-bit) Using Outlook 12
N MS outlook 2010 is keep on prompting user name and password from the EXCHANGE SERVER 2007 SP1 64 BIT Using Outlook 24
B cannot send email with microsoft outlook 2010 (64 bit) from Adobe ; outlook not recognised as defaul Using Outlook 8
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
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

Similar threads

Top