Get Source Code

Anonymous Access

The source can be checked out anonymously from SVN with the following command.

$ svn checkout http://svn.apache.org/repos/asf/james/imap/trunk james-imap

Developer Access

Everyone can access the Subversion repository via HTTP, but Committers must checkout the Subversion repository via HTTPS.

$ svn checkout https://svn.apache.org/repos/asf/james/imap/trunk james-imap

Build Source Code

You can read a tutorial on how to build Apache James Server on http://james.apache.org/server/3/dev-build.html.

The SVN URLs and the project names must be adapted, but the requirements and process are the same and you can inspire from the build the Apache James IMAP libraries.

Source Code Organization

Modules

Apache James IMAP API

apache-james-imap-api contains the interfaces, exceptions and Constants needed by the other projects.

The following diagram represents some key (not all) interfaces of the IMAP API project.

Apache James IMAP Message

apache-james-imap-message allows to encode, decode and structure the IMAP requests and responses.

It will provide among other the ImapRequestMessage and ImapResponseMessage implementation to be processed by the apache-james-imap-processor project.

Apache James IMAP Processor

apache-james-imap-processor implements the Chain Of Responsibility design pattern.

ImapRequestMessage and ImapResponder will be passed to the list of Processors that will execute doProcess if applicable.

Apache James Integeration Test

A specific integration project is responsible to test the IMAP protocol in conjunction with the Apache James mailbox components.