Skip to content

Instantly share code, notes, and snippets.

@kkm
Last active May 19, 2016 02:47
Show Gist options
  • Save kkm/7d2e316444d49bfa64e267d5419442de to your computer and use it in GitHub Desktop.
Save kkm/7d2e316444d49bfa64e267d5419442de to your computer and use it in GitHub Desktop.
Outlook Autocomplete Raw and Sender
Outlook.Accounts accounts = Application.Session.Accounts;
foreach (Outlook.Account account in accounts) {
Debug.WriteLine("Sender: " + account.SmtpAddress);
Outlook.StorageItem storage = account.DeliveryStore.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox).GetStorage("IPM.Configuration.Autocomplete", Outlook.OlStorageIdentifierType.olIdentifyByMessageClass);
Outlook.PropertyAccessor pa = storage.PropertyAccessor;
byte[] raw_autocomplete_bytes = (byte[]) pa.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x7C090102");
Debug.WriteLine("Raw Bytes from Autocomplete: " + raw_autocomplete_bytes.Length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment