This is a Java servlet allows you to read mail files in the standard mbox format.
How to use it:
a) copy mboxPackage.jar into your WEB-INF/lib directory.
b) define servlet in your web.xml file.
define a mapping:
the usage is:
http://your_host/servlet/MboxServlet?config_file
Runs the mbox reader and uses the mentioned file as a configuration file. Configuration file is a text file, each line describes one parameter in the form of
param=value
Empty lines and lines starts with # or // are ignored.
Current version supports the following list of parameters:
#
# mbox configuration
#
# data file. Your mbox file. This parameter is mandatory. You
# may use the full path for setting your mailbox
data=your_file_is_here
# background color. Default value is #FFFFFF
bgcolor=#FFFFFF
# foreground color. Default value is #000000
fgcolor=#000000
# background for title row. Default value is #666699
bghead=#666699
# foreground for title row. Default value is #FFFFFF
fghead=#FFFFFF
# font face. By default is default browser's font
face=Verdana,Arial
# font size. By default is default browser's font
size=1
# head. You can set here some file contains any html-code. This code
will be
# outputed at the beginning of each page. So you can set for example
some banners.
# By default this value is empty
head=path_to_your_file
# how to sort messages.
# 1 - first to last (default value)
# 2 - last to first
sort=1
# title.
title=My letters
# page size (letters per page). Default value is 20
page=20
# allows html-based messages
# 0 - remove html tags
# 1 - read messages "as is" (default value)
html=1
You can place configuration file (files) anywhere on your server. Just
use the proper path for setting servlet's parameter. Short path (just name
of the file) means that your configuration file is saved under the root
(docBase) directory for your servletrunner. But you can always use some like this:
http://your_host/servlet/MboxServlet?c:\myfiles\config.txt
For downloading: mboxPackage.jar
Sample of config file: mboxconf
See also JSOS - the largest collection of servlets and filters.