evolution-ews  3.42.1
About: Evolution-EWS is a plugin (connector) for the Evolution groupware suite to integrate MS Exchange through Exchange Web Services (EWS).
  Fossies Dox: evolution-ews-3.42.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

evolution-ews Documentation

Some Fossies usage hints in advance:

  1. To see the Doxygen generated documentation please click on one of the items in the steelblue colored "quick index" bar above or use the side panel at the left which displays a hierarchical tree-like index structure and is adjustable in width.
  2. If you want to search for something by keyword rather than browse for it you can use the client side search facility (using Javascript and DHTML) that provides live searching, i.e. the search results are presented and adapted as you type in the Search input field at the top right.
  3. Doxygen doesn't incorporate all member files but just a definable subset (basically the main project source code files that are written in a supported language). So to search and browse all member files you may visit the Fossies evolution-ews-3.42.1.tar.xz contents page and use the Fossies standard member browsing features (also with source code highlighting and additionally with optional code folding).


   $ cd .../sources/evolution-ews
   $ mkdir build
   $ cd build
   $ cmake -G "Unix Makefiles" \
           -DCMAKE_INSTALL_PREFIX=/opt/evolution \
           -DCMAKE_BUILD_TYPE=Release \
   $ make -j
   $ make -j install

Run `cmake --help` to get list of available generators (the -G argument)
on your platform.


2. Test Suite

Pre-requisites to launch the test suite.
Export the following environmental variables for your test suite to run.


   $ make check


3. Autodiscover reference

The Autodiscover service provides the configuration information necessary to 
create a connection to an Exchange server. The Autodiscover service provides 
a mechanism that allows you to use “plain old XML” (POX) messages — that is, 
messages that consist solely of XML payloads without any enclosing SOAP 
envelopes — to locate the settings that a client application must have in 
order to connect to Exchange.

Currently the test suite uses autodiscovery to fetch the url to connect to,
using your username and email provided.


The ASUrl (POX) element contains the url. Use this for all subsequent requests
to your Exchange server.

A typical ASUrl looks like this,


4. URLs

  -> Development overview - http://msdn.microsoft.com/en-us/library/cc535017%28v=EXCHG.80%29.aspx

  -> Autodiscover reference - http://msdn.microsoft.com/en-us/library/aa581522.aspx

  -> EWS XML Elements - http://msdn.microsoft.com/en-us/library/aa580675%28v=EXCHG.80%29.aspx


5. Address book

Fetching Global address list

Use OAB (Offline Address Book) for caching the GAL locally into Evolution.

While caching happens in the background, until the cache is setup, use 
Resolve Names.

Resolve names operation

Unresolved Entry


6. Fetching Public folders

Needs an additional header not mentioned in the documentation
Include the following header for Exchange 2007, 
  <t:RequestServerVersion Version="Exchange2007_SP1"/>

What's the equivalent for Exchange 2010? No server to test as yet.

7. Ideas yet to research on

== Mailer ==

Following the IMAPX backend, we could make EWS asynchronous in the same manner
prioritizing the client requests.

Separate out the prioritizing client requests and make it common to all 

Is pipe-lining requests possible?

== Calendar ==

Make the operations similar to mailer. Handle all the operations Offline and 
later sync it with server.

Handle all the offline operations in a single class, say CalBackendOffline.
Cache needs to be extended to be able to give the list of un-syncronized 
(local->server) items. We could handle the error messages for the 
un-synchronized calendar items (eg: meeting created) by optionally displaying
an error dialog and also providing a visual cue in the form of an icon.

The error can also be logged per event. Eg: Opening the meeting can show the 
actual error in the meeting editor in a non-intrusive manner. This very similar
to how mailer handles the un-sent mails in OutBox showing the error messages.

Improve FreeBusy performance by fetching free/busy information for all users at
a single stretch if the server supports it. FreeBusy requests should be 
cancellable. Provide EDS ECal apis for the same.

== Address book ==

Ensure the auto-completion performance doesn't fade while caching the contacts
or fetching deltas.

other improvement areas?

== Single Connection (to be analyzed) ==

Are multiple connections allowed on exchange servers or is there any limit ?
Since address-book, calendar, mailer are run as separate processes we would 
require three connections if connections are not shared.

If we want to use a single connection, we might need to write ews connection 
layer as a separate process and let mailer,e-address-book-factory, 
e-calendar-factory send the requests to it.