org.apache.james.transport.mailets
Class AddHabeasWarrantMark
java.lang.Object
org.apache.mailet.base.GenericMailet
org.apache.james.transport.mailets.AddHabeasWarrantMark
- All Implemented Interfaces:
- Mailet, MailetConfig
public class AddHabeasWarrantMark
- extends GenericMailet
This matcher adds the Hebeas Warrant Mark to a message.
For details see: http://www.hebeas.com
Usage:
<mailet match="<suitable-matcher>" class="AddHabeasWarrantMark" />
NOTE: Although this mailet is covered by the Apache Software License,
the Habeas Warrant Mark is copyright. A separate license from Habeas
is required in order to legally attach the Habeas Warrant Mark to
e-mail messages. Each James Administrator is responsible for
ensuring that James is configured to attach the Habeas Warrant Mark
only to e-mail covered by a suitable license received from Habeas.
Because the Habeas Warrant Mark is copyright material, I have asked
for and received the following explicit statement from Habeas:
-----------------------------------
From: Lindsey Pettit [mailto:support@habeas.com]
Sent: Sunday, September 29, 2002 5:51
To: Noel J. Bergman
Subject: RE: Habeas and Apache James
Dear Noel,
> FURTHERMORE, if James is to be capable of sending Habeas SWE, I need
> to write a Mailet that attaches the headers. As with any MTA, it
> would be up to the administrator to properly configure James and make
> sure that licenses are acquired. Since the Habeas Warrant Mark is
> copyright, I believe that I require authorization from you for that
> Mailet, especially since it attaches the Habeas Warrant Mark. For my
> own protection, please show me why such authorization is unnecessary,
> send me a digitally signed e-mail, or FAX a signed authorization
You do not yourself need the authorization to build the functionality
into the [mailet]; what one needs authorization, in the form of a
license, for, is to use the mark *in headers*, in outgoing email.
However, please let me know if you would like something more
formal, and I can try to have something faxed to you.
> The Mailet docs would reference the Habeas website, and inform
> administrators that in order to USE the mailet, they need to ensure
> that they have whatever licenses are required from you as appropriate
> to your licensing terms.
That's absolutely perfect!
-----------------------------------
Method Summary |
java.lang.String |
getMailetInfo()
|
void |
service(Mail mail)
Called by the mailet container to allow the mailet to process to
a message message. |
Methods inherited from class org.apache.mailet.base.GenericMailet |
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddHabeasWarrantMark
public AddHabeasWarrantMark()
service
public void service(Mail mail)
throws javax.mail.MessagingException
- Called by the mailet container to allow the mailet to process to
a message message.
This method adds the Habeas Warrant Mark headers to the message,
saves the changes, and then allows the message to fall through
in the pipeline.
- Specified by:
service
in interface Mailet
- Specified by:
service
in class GenericMailet
- Parameters:
mail
- - the Mail object that contains the message and routing information
- Throws:
javax.mail.MessagingException
- - if an message or address parsing exception occurs or
an exception that interferes with the mailet's normal operation
getMailetInfo
public java.lang.String getMailetInfo()
- Specified by:
getMailetInfo
in interface Mailet
- Overrides:
getMailetInfo
in class GenericMailet
Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.