Generates an XML listing of messages from an IMAP mail server.
You must configure this generator with "host", "user", and "pass" parameters
which specifies the mail server host, the user to login as, and the password to use,
respectively. Beware that these passwords will be sent cleartext since the Generator
does not use an SSL-enabled IMAP connection.
Also beware that storing sensitive data, (such as mail usernames and passwords) can
be very dangerous, so please be very careful in the method by which you send the user
and password parameters to the generator.
Instructions: get the JavaMail API jar from http://java.sun.com/products/javamail/, and
the JAF activation.jar from http://java.sun.com/beans/glasgow/jaf.html. Put mail.jar
and activation.jar in xml-cocoon2/lib/local/, and recompile. These jars could actually be
moved to lib/optional and added to jars.xml in the future.
TODO Refactor all of this to use the MailCommandManager, etc...
generate()
Generate the XML and stream it into the pipeline
void
recycle()
Recycle the generator by removing references
void
setup(SourceResolver resolver,
Map objectModel,
String src,
Parameters par)
Set the SourceResolver, object model Map,
the source and sitemap Parameters used to process the request.