MboxServlet ver. 1.3

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:


    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


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

# background color. Default value is #FFFFFF

# foreground color. Default value is #000000

# background for title row. Default value is #666699

# foreground for title row. Default value is #FFFFFF

# font face. By default is default browser's font

# font size. By default is default browser's font

# 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

# how to sort messages.
# 1 - first to last (default value)
# 2 - last to first

# title.
title=My letters

# page size (letters per page). Default value is 20

# allows html-based messages
# 0 - remove html tags
# 1 - read messages "as is" (default value)

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:

For downloading:   mboxPackage.jar   

Sample of config file: mboxconf

 © Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.