Changing 'To' field in message lists to show SMTP address only.

Status
Not open for further replies.
Outlook version
Email Account
IMAP
Can I refer to:




http://www.slipstick.com/exchange/adding-extended-mapi-fields-to-outlook/ ?




The "Sender's email address" section in that link works very well and has been used by me for about a year (XP Pro, Outlook 2007, Hotmail Connector).




Externsive searching, and also a long, current thread here http://outlookcode.com/threads.aspx?forumid=2&messageid=32712 , have so far produced no result for the following request:




Cause Outlook message lists to display alternative To, CC, BCC and 'Have replies sent to' (ie Reply-to) fields, these alternatives showing not the Display Name provided by the default fields but the plain SMTP address.




In other words I need a script equivalent to the Sender's Email Address script above, for filing as a .cfg file, which will do the same job but for the other fields mentioned.




Any input on this will be very welcome indeed!




William Lambton,


Ireland.
 
I believe i asked my expert (a fellow , Michael from CodeTwo) about this before and got a 'no' but will need to look it up. If the mail is internal Exchange, it definately will not work, but might be possible for POP/SMTP.




My expert gave me these instructions for created the CFG:




All you need to have to create a new field in a form is:




1. A sample CFG file. You can take EXTENDED-PROPERTIES.CFG from


http://www.codetwo.com/downloads/EXTENDED-PROPERTIES.CFG or NOTE.CFG from C:\Program Files\Microsoft Office\Office12\FORMS\xxxx\




2. OutlookSpy or MFCMAPI to check MAPI tags of properties.






Here is how to add Internet Message ID which you can find in EXTENDED-PROPERTIES.CFG.




First you need to find the property (field) you are looking for in OutlookSpy and read its "Tag num". It is 0x1035001E for the Internet MessageID field.




Now you edit the CFG file. In the [Properties] section add a new Property<XX>=<property name>. <XX> is a next number relative to other PropertyXX entries already existing in the [Proeprties] section. <property name> is the name of a property. It might be anything, it is used as a reference in CFG only.


Sample:


Property04=InternetMessageID




Next, add a new section [Property.<property name>] that describes the property. Sample:


[Property.InternetMessageID]


Type=30


;PropTag=PR_INTERNET_MESSAGE_ID


NmidInteger=0x1035


DisplayName=Internet Message ID




First about "Tag num" 0x1035001E. It consists of two hex parts:


1035 - property ID


001E - property type, here string




Type field from the example above contains the property type but in decimal form 001E hex == 30 dec.




;PropTag=PR_INTERNET_MESSAGE_ID is commented out and it contains MAPI constant for this property (as seen in OutlookSpy), it is for reference only.




NmidInteger contains the property ID in hex.




DisplayName is the display name of property, it will be the display name of the field in Outlook. I noticed that sometimes Outlook changes this name in a view.




That's all, now you can install the form (CFG) in Outlook and use the new field. The install instructions are here


http://www.slipstick.com/exchange/adding-extended-mapi-fields-to-outlook/.




The above regards "constant" MAPI properties, which always have the same "Tag num" on every computer. There are also "named" MAPI properties which are identified by their Tag, Namespace and Type. I didn't define them in CFG so far. I suppose that additionally to NmidInteger you would need to use also NmidPropset, which you can also read in OutlookSpy.




Here is some documentation on CFG format:


http://msdn.microsoft.com/en-us/library/ms529408(EXCHG.10).aspx





You can use MFCMAPI to look up the prop id for the fields you want to expose and try creating your own cfg.
 
This modified CFG get the received by address and the reply to address. The CC addresses are not an exposed mapi property. You can add the message header field too, but its less than useful because of the field size. It does show the return path field tho (when present) because its the first in the header. Also, BCC fields are not available on incoming emai.






[Description]


MessageClass=IPM.POST.SLIPSTICK.PROPERTIES


DesignerRuntimeGuid={0006F020-0000-0000-C000-000000000046}


CLSID={0006103A-0000-0000-C000-000000000046}


DisplayName=SLIPSTICK PROPERTIES


Comment=Contains fields that are not available in Outlook by default


LargeIcon=postl.ico


SmallIcon=posts.ico


VersionMajor=1


VersionMinor=1


Hidden=1


Owner=www.codetwo.com


ComposeInFolder=1




[Platforms]


Platform2=NTx86


Platform9=Win95




[Platform.NTx86]


CPU=ix86


OSVersion=WinNT3.5




[Platform.Win95]


CPU=ix86


OSVersion=Win95




[Properties]


Property01=ReceivedByAddress


Property02=Replyto


Property03=MessageHeaders


Property04=InternetMessageID




[Property.ReceivedByAddress]


Type=30


;PropTag=PR_RECEIVED_BY_EMAIL_ADDRESS


NmidInteger=0x0076


DisplayName=Received By




[Property.ReplyTo]


Type=30


;PropTag=PR_REPLY_RECIPIENT_NAMES


NmidInteger=0x0050


DisplayName=Reply to




[Property.MessageHeaders]


Type=30


;PropTag=PR_TRANSPORT_MESSAGE_HEADERS


NmidInteger=0x007D


DisplayName=Message Headers




[Property.InternetMessageID]


Type=30


;PropTag=PR_INTERNET_MESSAGE_ID


NmidInteger=0x1035


DisplayName=Internet Message ID




[Verbs]


Verb1=1




[Verb.1]


DisplayName=&Open


Code=0


Flags=0


Attribs=2




[Extensions]


Extensions1=1




[Extension.1]


Type=30


NmidPropset={00020D0C-0000-0000-C000-000000000046}


NmidInteger=1


Value=1002000000000000
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
C Changing Domain -- Assigned To User field Migration? BCM (Business Contact Manager) 1
J Calendar events created on iPhone automatically changing default alert from 'None' to 'Time of Event' Using Outlook.com accounts in Outlook 0
F Auto changing email subject line in bulk Using Outlook 2
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
MattC Changing the font of an email with VBA Outlook VBA and Custom Forms 1
V Outlook 2021 Can anyone explain why my Outlook views keep changing?! Using Outlook 2
wayneame Changing the Form Used by Existing Task Items in a Folder Outlook VBA and Custom Forms 4
S Changing Message Class Outlook VBA and Custom Forms 4
C Pop Server Changing Verizon/Aol to Yahoo Using Outlook 6
P Outlook tasks keeps changing (updating) dates that I type Using Outlook 2
e_a_g_l_e_p_i Changing where data .pst is saved to Using Outlook 3
P Changing the font that the task view shows Using Outlook 5
S Changing colors of today's appointments, but not recurring ones Using Outlook 33
T Changing Sent Items location in Outlook 2019 Using Outlook 0
E Outlook view grouping keeps changing Using Outlook 3
B BCC issues after changing root folder path for gmail Using Outlook 1
M Changing the preferred order for "Put this entry in" list for adding new contacts to the Address Book Using Outlook 1
J Outlook 2010 Changing events in Outlook calendar via opening file, importing CSV Using Outlook 0
A .restrict results changing after moving to Exchange online Outlook VBA and Custom Forms 0
T Outlook Contacts ... Changing Font Size, Style, Bold, etc. Using Outlook 2
N Rule for "on behalf of" - with changing names Using Outlook 2
O Save attachments using hotkey without changing attributes Outlook VBA and Custom Forms 1
M Outlook 2016: Changing default font for Notes and Reading Pane Using Outlook 4
V Changing default date for task follow-up buttons Using Outlook 2
Gary Hile Outlook 2016 changing editor options Using Outlook 6
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
S Problems syncing emails with webmail after changing to Outlook 2016 Using Outlook 1
T Changing default Mail Account in Outlook 2016 - POP3 Using Outlook 1
S Changing notification sound for new incoming messages in Outlook 365/2016 Using Outlook 1
Stephen Weinberg Changing the mailing address checkbox Using Outlook 0
D Outlook 2013 changing iCloud reminder time? Using Outlook 0
C Changing the name of Outlook Messages saved to a folder Using Outlook 1
A Outlook.com changing appointments Using Outlook 8
B Changing CC list to .add Outlook VBA and Custom Forms 2
Diane Poremsky Changing the Message Size in Exchange Server Using Outlook 0
R changing FW: on forward Outlook VBA and Custom Forms 3
B changing Win7 default backup schedule for Previous Versions Using Outlook 0
Diane Poremsky Changing the default *.pst and *.ost sizes Using Outlook 0
P Message Class keeps changing back to IPM.Contact Outlook VBA and Custom Forms 2
C Macro to send email after changing from address and adding signature Outlook VBA and Custom Forms 1
Diane Poremsky Changing Outlook.com color schemes Using Outlook 0
R Outlook calendar appointments Free/Busy time is changing from "Busy" to "Free" Using Outlook 2
W Changing looks of emails in Outlook 2003 Using Outlook 0
L Office 365 Outlook changing default contact folder Using Outlook 0
Diane Poremsky Changing the From Domain in Office 365 Using Outlook 0
R The changing way to access information in Office 365 Using Outlook 0
N Creating or changing the main new mail message template in Outlook 2010 Using Outlook 2
T issue changing [Type] in dbo.ContactMainTable/ contacts seem to be deleted BCM (Business Contact Manager) 5
William Yeack Outlook/Exchange - Changing display of “From” user Using Outlook 3
divan VbaProject: Changing email format Using Outlook 15

Similar threads

Back
Top