To try out the REST API in Mail Addin's I've created a few sample Mail Addin's that shows some novel ways of using this REST API in Outlook Clients.
Sender Sentiment Mail App
A few weeks okay I touched on the new Sentiment property that is available on some email in Office 365 in this post . In the below Mail App I've used this property to show the sentiment statistics of email from the sender of a Message. It works by first making a REST query of the Inbox for all the Messages from the current Sender of the Message you activate it on over the last month, it then does some quick counts to display some simple stats for Last 30 and 7 days back to user. Then on the messages that have the Sentiment property set (and not all do) it does a batch request on those messages to get the full sentiment property information (this is necessary because of the property size see my other post). And then displays back to user the following information about the positivity or negativity (based on the polarity property of the emotive profile) of that senders email over the last Month or 7 days eg
Sender Mail Tips Mail App
Mail Tips are typically used when sending a Messages to give extra information or prevent users from making basic mistakes. However this information can be equally as useful on any received message. So what I've done is put together a Mail App that will simply show you all the Mail Tips that are available for a particular sender. Because the MailTips operation in REST is still in its beta state this Mail App calls the beta endpoint. It produces a results like
A few dev tips if your going to write one yourself. First start with Visual Studio 2017 the templates for Mail Apps have improved a lot from pervious version of VS so you can get up and going with a working sample in a few minutes. If your designing something that will be primarily used in the Outlook desktop client then change the startup project to Office Desktop (Edge will be the default eg).
The code and using
All the code from this post is in the following GitHub repo's https://github.com/gscales/gscales.github.io/tree/master/SenderSentiment and https://github.com/gscales/gscales.github.io/tree/master/SenderMailTips . The code is actually hosted on GitHub Pages and can be used straight from the repository if you want to test it yourself the manifest files can be loaded as custom add-ins from From URL eg
Sender Sentiment Addin
(This is all POC code so use it for testing only, also not optimized for performance)
There are whole number of really cool things you can do with Mail Addin's if you are looking for someone to help build a Mail Addin for you or help with any other Exchange related development tasks or scripting/automation. I'm available to take on work at the moment so please contact me at firstname.lastname@example.org . I'd also be interested in hearing from any companies that want to sponsor open source projects around Exchange and Office365 development.