In the next steps we’ll try to visualize the Sender-ID MAPI property (0x40790003) in our Outlook 2003 client.
Copy the below text into a new text file as SenderID.CFG (in the same location as the .ICO files, usually Program Files\Microsoft Office\Office11\forms\language ID).
;**********The CFG file**********
[Description]
MessageClass=IPM.Note.SenderID
CLSID={00020D0C-0000-0000-C000-000000000046}
DisplayName=SenderID Extension Form
Category=Standard
Subcategory=Form
Comment=This forms allows the SenderID to be viewed in a column in Outlook
LargeIcon=IPML.ico
SmallIcon=IPMS.ico
Version=1.0
Locale=enu
Hidden=1
Owner=Microsoft Corporation
[Platforms]
Platform1=Win16
Platform2=NTx86
Platform9=Win95
[Platform.Win16]
CPU=ix86
OSVersion=Win3.1
[Platform.NTx86]
CPU=ix86
OSVersion=WinNT3.5
[Platform.Win95]
CPU=ix86
OSVersion=Win95
[Properties]
Property01=SenderID
[Property.SenderID]
Type=3
;NmidString=PR_SENDER_ID_STATUS
NmidInteger=0x4079
DisplayName=SenderID
[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=1000000000000000
;**********END CFG
Go into Tools | Options | Other | Advanced Options | Custom Forms | Manage Forms. Hit the Install button, and choose SenderID.CFG …install into your Personal Forms Library
- Hit OK several times to return to the main Outlook screen
- Right-click on the Column headings in your Inbox (other any other folder) and choose "Field Chooser"
- Pull-down the scroll-bar and choose "Forms…"
- Set focus to your Personal Forms, choose the SenderID Extension Form, then click Add
- Drag and drop the SenderID property into your column headings …and voila, you now should see the SenderID status for messages that come from the Internet through your Exchange 2003 SP2 gateway.
Now you are able to correlate the numeric status code to the SenderID result using the following table:
|
Sender_ID Result |
Numeric Code |
|
NEUTRAL |
0x1 |
|
PASS |
0x2 |
|
FAIL |
0x3 |
|
SOFT_FAIL |
0x4 |
|
NONE |
0x5 |
|
TEMP_ERROR |
0x80000006 |
|
PERM_ERROR |
0x80000007 |
As the last step, for those of us who prefer labels instead of numbers, Outlook allows you to create custom fields based on the formula. To do that, follow the following steps.
- Right-click on the Column headings in your folder where you enabled SenderID field and choose "Field Chooser"
- In the Field Chooser, click New. Type SID as the field name, use Formula as the Type. In the Formula field copy&paste the following (without the quotation marks)
-
“IIf([SenderID]=1,"NEUTRAL",IIf([SenderID]=2,"PASS",IIf([SenderID]=3,"FAIL",IIf([SenderID]=4,"SFAIL",IIf([SenderID]=5,"NONE",IIf([SenderID]=-2147483641,"PERM_ERR",IIf([SenderID]=-2147483642,"TEMP_ERR",[SenderID])))))))”
-
Click OK and Drag&Drop the newly created SID field into your column headings. You can hide the original SenderID field now by dragging it out of the column headings.
