Skip to content

Instantly share code, notes, and snippets.

@hansgafriedzal
Created August 14, 2025 04:30
Show Gist options
  • Save hansgafriedzal/bf719c02ff1d1c3cc1575be0c8582035 to your computer and use it in GitHub Desktop.
Save hansgafriedzal/bf719c02ff1d1c3cc1575be0c8582035 to your computer and use it in GitHub Desktop.
# https://superuser.com/a/1199773
$path = gps OUTLOOK | % path | split-path
if (!$path) {
Write-Host -f Red "Outlook is not running. Please start Outlook and try again."
}
"[Description]
MessageClass=IPM.Note
CLSID={00020D31-0000-0000-C000-000000000046}
DisplayName=From Email Address
Category=Standard
Subcategory=Form
Comment=This forms is used to expose a sender's actual email address.
LargeIcon=notel.ico
SmallIcon=notes.ico
VersionMajor=1
VersionMinor=0
Locale=enu
Hidden=1
Owner=Microsoft
[Platforms]
Platform2=NTx86
Platform9=Chicago
[Platform.NTx86]
CPU=ix86
OSVersion=WinNT3.5
[Platform.Chicago]
CPU=ix86
OSVersion=Win95
[Properties]
Property01=FromEmailAddress
[Property.FromEmailAddress]
;PropTag=PR_SENDER_EMAIL_ADDRESS, 0x0C1F001E
Type=30 ; 001E = 30 in decimal
NmidInteger=0xc1f ; 0C1F
DisplayName=From E-mail Address
[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" | Out-File -Encoding ascii -FilePath "$path\FORMS\1033\FromEmailAddress.cfg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment