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

Status
Not open for further replies.
Outlook version
Outlook 2007
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.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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.
Top