It is a Java servlet allows you to read your mail box through WAP/WML devices. This servlet supports WML interface to Post Office Protocol (POP).
How to use it:
a) copy wmlPopPackage.jar into your WEB-INF/lib directory.
b) define servlet in your web.xml file. You must set an initial parameter
for this servlet. Parameter name is config and this parameter defines a name of your
configuration file with mail settings.
<servlet>
<servlet-name>WmlPopServlet</servlet-name>
<servlet-class>com.jsos.wmlpop.WmlPopServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>path_to_your_configuration_file</param-value>
</init-param>
</servlet>
define a mapping:
<servlet-mapping>
<servlet-name>WmlPopServlet</servlet-name>
<url-pattern>/servlet/WmlPopServlet</url-pattern>
</servlet-mapping>
the usage is:
http://your_host/servlet/WmlPopServlet
Configuration file is a text describes mail settings in the form of
parameter:value. Empty lines and lines starts with # or // are ignored.
Current version supports the following list of parameters:
# POP settings
# mailhost - your mail host
mailhost:mail.your_company.com
# mail port. Default value is 110
port:110
# SMTP settings
# smtp relay
relay:smtp.your_company.com
# smtp port. Default value is 25
port1:25
# domain name
domain:your_domain
# working directory.
# Note: servlet will use specified working directory for
# temp files only and all files from this directory will be deleted
dir:some_directory_on_your_server
# encoding for input parameters. Default value is ISO-8859-1
encoding:Cp1251
For downloading: wmlPopPackage.jar
Sample of configuration file: wmlpop
See also JSOS - the largest collection of servlets and filters.