on a different note, another interesting (for a certain definition of the word that I'm defining to include this piece of information) thing is, office365 seems to have a REST API that returns all your mail as JSON data if you go to
outlook.office365.com/api/v1.0/me/messages