Background If you have ever created applications that incorporate the Graph API or any other modern authentication-requiring Microsoft API, then you would have most probably worked with ADAL (The Azure Active Directory Authentication Library) to get tokens for API access.…
EWS Managed API Trace Listener
MSDN has some sample code showing how to implement a trace listener for the EWS Managed API (which is crucial for debugging EWS applications). However, the sample trace listener isn’t actually very good for a variety of reasons (it creates…
EWS: How to send signed email using the EWS Managed API
A question that keeps popping up is how to send signed or encrypted email using EWS. A colleague (thank-you Vladimir!) has recently put together some sample code showing how to do exactly that using the EWS Managed API. Based on his…
EWS: Update Out-of-Office (OOF) sample application
This sample program shows how the OOF message can be manipulated using the EWS Managed API. Full source (Visual Studio 2013) is included, and the program can be run from the command-line (so can be incorporated into scripts) or with…
EWS: Hide a named folder in multiple mailboxes
Recently we’ve had a couple of requests that involved deleting or hiding mailbox folders that are created automatically either by Outlook or Lync. Deleting such folders is usually both not supported and also not possible – they will most likely…
EWS: Streaming Notification Sample
To complete my unintentional series on EWS notifications, I have written a sample application showing how to deal with streaming subscriptions. The application includes full logging of both events and EWS calls, so is very useful for troubleshooting. The screenshot…
Transport Agent: Remove extra prefixes from email subject
If you regularly send email internationally, you may notice an issue that crops up in email conversations between two locales where the “Re.” prefix differs. Basically, each time the message is replied to, another Re. (or Aw., Antwort, etc.) is…
Outlook Code: Change the name of the root folder in Outlook 2010 after an SMTP address change
We have been getting a few requests for changing the name of the root folder in Outlook 2010 following an SMTP address change, to reflect the new SMTP address of the users. For that I have written an Outlook add-in…
Outlook Code: BeforeItemMove event not being triggered for all the folders
We have recently had a case where the BeforeItemMove event wasn’t being triggered when switching between two calendar folders in Outlook 2007 or 2010. To subscribe for the event we were using the Outlook.Explorer.CurrentFolder property to retrieve the currently…