A mailet is an email processing agent described by the Mailet API.
Apache Mailet 2.4 is the latest release and can be downloaded here.
Mailets are both flexible and powerful. So they can be used for a very wide range of purposes. The JAMES email server factors most of it's mail processing functionality into mailets. These mailets can be used independently in any compatible Mailet container.