After unpacking the zip file, you will see the following directory structure
IMAPWeb
|
-- src (dir)
|
-- imapweb (dir)
|
-- doc (dir)
|
-- License
|
-- make.bat
Simply copy the imapweb directory into the webapps directory within Tomcat. Add a context by adding the following line to the tomcat.conf configuration file:
ApJServMount /imapweb /root
This will create an imapweb contexts within tomcat. Next configure the servlet parameter by editing the IMAPWeb/imapweb/WEB-INF/web.xml file. You will see the following section
<context-param>
<param-name>imapweb.jsp.path</param-name>
<param-value>/jsp</param-value>
<description>
This is the path to
the jsp page
</description>
</context-param>
<context-param>
<param-name>imapweb.servlet.url</param-name>
<param-value>/imapweb/IMAPWeb</param-value>
<description>
This is the absolute
path to the servlet URL
</description>
</context-param>
<servlet>
<servlet-name>IMAPWeb</servlet-name>
<servlet-class>com.scioworks.imapweb.IMAPWeb</servlet-class>
<init-param>
<param-name>mail.smtp.host</param-name>
<param-value>robin.etherone.com</param-value>
</init-param>
<init-param>
<param-name>mail.imap.host</param-name>
<param-value>robin.etherone.com</param-value>
</init-param>
<init-param>
<param-name>imapweb.domain</param-name>
<param-value>etherone.com</param-value>
</init-param>
<init-param>
<param-name>imapweb.login.page</param-name>
<param-value>/jsp/login.jsp</param-value>
</init-param>
<init-param>
<param-name>imapweb.timeout.page</param-name>
<param-value>/jsp/session_timeout.jsp</param-value>
</init-param>
<init-param>
<param-name>imapweb.session.delete.timeout</param-name>
<param-value>36000</param-value>
</init-param>
<init-param>
<param-name>imapweb.session.inactive.timeout</param-name>
<param-value>12000</param-value>
</init-param>
Please edit the appropriate parameters which are explained in the next section. Note that usually you only have to configure 3 parameters:
mail.smtp.host, mail.imap.host, imapweb.domain.
Other parameters need to be changed only if you want an installation
that is significantly different from the one described here.
Parameter Name | Example Value | Explanation |
imapweb.jsp.path | /jsp | The path where the jsp files can be found. |
imapweb.servlet.url | /imapweb/IMAPWeb | The path where the servlet is mapped to. In the example the URL will
be
http://<host>/imapweb/IMAPWeb |
Parameter Name | Example Value | Explanation |
mail.smtp.host | smtp.scioworks.com | The SMTP host |
mail.imap.host | imap.scioworks.com | The IMAP host |
imapweb.domain | scioworks.com | The domain name of the mail server |
imapweb.login.page | /jsp/login.jsp | The JSP page that will be displayed to prompt a user to login |
imapweb.timeout.page | /jsp/session_timeout.jsp | The JSP page that will be displayed when a user session has timed out. |
imapweb.session.delete.timeout | 36000 | The duration (in seconds) in which an idle http session will remain in the system if not accessed. An idle session that has been idle for longer than this specified value will be flushed out of the system. |
imapweb.session.inactive.timeout | 12000 | The duration (in seconds) in which an idle http session will be deemed as active. Any session that has been idle for more than this specified value are inactive. Inactive sessions are required to relogin to be reactivated |
There are currently 2 mailing lists:
This project was an experiment in the capabilities on these technologies
and also server-side Java in general. The architecture chosen is popularly
known as the JSP Model II development. IMAPWeb is a work in progress and
as such there are still a number of basic features common in IMAP client
that are still missing. One of the obvious one being support for mail attachments.
The following are just some areas where we are looking at improving IMAPWeb: