Building Davmail From Source on Ubuntu

Davmail is an exchange gateway, which can work with the Nexus groupware system. If you need to build this from source from any reason, then instructions are as below.

1. Removing the existing version and installing required packages

Open a terminal:

Type:

sudo apt-get remove davmail
sudo apt-get install eclipse-rcp sun-java6-jdk ant subversion

2. Downloading the latest version

In the terminal window type:

svn co http://davmail.svn.sourceforge.net/svnroot/davmail/trunk

This command may take a few minutes to process and will download the files to the directory where you ran the command from.

3. Building and installing the software

Move to the trunk directory:

cd trunk

Then type:

ant

Which should build the packages for Davmail.

If you get the error message: BUILD FAILED, check the scrollback to see if at the start of the build process it includes the line: Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

If you do, type at the terminal:

sudo update-alternatives --config java and select the option that has the path /usr/lib/jvm/java-6-sun/jre/bin/java (For me, it was option 2)

In the subdirectory 'dist' this will have created the packages for this new version. For Ubuntu/Debian users, the file:

davmail_a.b.c-xyz-1_all.deb

a.b.c is the version number and xyz is the release revision. To install it type:

cd dist
sudo dpkg -i davmail_a.b.c-xyz-1_all.deb

Replacing xyz with the release revision. Alternativly you could just navigate to the dist folder by clicking on Places --> Home Folder and double click on it.

This guide was tested with revision 1325 on Ubuntu 10.04 working with Thunderbird 3.0.6, so if you have installed this and it doesn't work, please let me know what revision you have tried @ richard.carpenter@oucs.ox.ac.uk

Instructions on how to configure Davmail for use with Mozilla Thunderbird are available @ http://www.oucs.ox.ac.uk/nexus/email/thunderbird/davmail.xml