{"id":229,"date":"2015-02-08T14:13:20","date_gmt":"2015-02-08T18:13:20","guid":{"rendered":"http:\/\/www.fitzsim.org\/blog\/?p=229"},"modified":"2015-10-26T20:19:16","modified_gmt":"2015-10-27T00:19:16","slug":"excorporate-ews-support-for-emacs","status":"publish","type":"post","link":"https:\/\/www.fitzsim.org\/blog\/?p=229","title":{"rendered":"Excorporate: EWS support for Emacs"},"content":{"rendered":"<p>I use Exchange at work for calendaring.  I also use terminal-mode emacsclient when I&#8217;m logged in from another machine.  In that scenario I can&#8217;t easily open a web browser to use Outlook Web Access.  It annoyed me that I couldn&#8217;t check my schedule from within a terminal Emacs session.  Thus, I did the only sensible thing and implemented full Exchange Web Services API support for Emacs.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.fitzsim.org\/screenshots\/excorporate-2015-02-08.png\" alt=\"Excorporate terminal screenshot\" \/><\/p>\n<p>The result is a library called <a href=\"http:\/\/lists.gnu.org\/archive\/html\/emacs-devel\/2015-02\/msg00482.html\">Excorporate<\/a> that has proof-of-concept Calendar integration to show today&#8217;s meetings.  It&#8217;s all written in Elisp, making it cross-platform.  It&#8217;s also cross-Emacs; I tested it on Emacs 24.1 through Emacs 24.4, on GNU\/Linux and MS-Windows.  It works on all Emacs versions that support packages.<\/p>\n<p>The tricky parts were:<\/p>\n<ul>\n<li>extending soap-client to support all the XML Schema (XSD) datatypes required by the EWS WSDL file,<\/li>\n<li>asynchronous URL retrieval without blocking the Emacs main loop,<\/li>\n<li>autodiscovery of Exchange server settings from an email address, and,<\/li>\n<li>implementing NTLMv2 authentication in Elisp.<\/li>\n<\/ul>\n<p>I&#8217;m trying to get it into GNU ELPA so that other modes can always count on its core APIs being available from a default Emacs installation.  I haven&#8217;t put it on GitHub yet, to keep it hidden from the ruthless efficiency of MELPA.  I was impressed and appreciative when MELPA bundled <a href=\"https:\/\/github.com\/fitzsim\/slime-volleyball\">slime-volleyball<\/a> shortly after I released it.  But I&#8217;d prefer to keep Excorporate in GNU ELPA only for now.<\/p>\n<p>Anyway, I&#8217;m publishing this mode in the hope that it&#8217;s useful to other Emacs-and-Exchange users.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Exchange at work for calendaring. I also use terminal-mode emacsclient when I&#8217;m logged in from another machine. In that scenario I can&#8217;t easily open a web browser to use Outlook Web Access. It annoyed me that I couldn&#8217;t check my schedule from within a terminal Emacs session. Thus, I did the only sensible &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.fitzsim.org\/blog\/?p=229\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Excorporate: EWS support for Emacs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-emacs","entry"],"_links":{"self":[{"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=229"}],"version-history":[{"count":15,"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/229\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fitzsim.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}