james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Angus <Danny_An...@slc.co.uk>
Subject Re: Getting Started With Mailets
Date Thu, 09 Sep 2004 08:15:52 GMT
Two things you need to suceed with mailets,
First is a sound knowedge of email.
Sounds daft but you will get on much better if you have a sound knowledge
of the construction of messages, what the headers are and what they mean,
when they are created during the life of a message, how content is
transmitted, what the restrictions are, how MIME messages are formatted and
what all the main MIME types are (or how to find the definitive list). You
also ought to understand the difference between the SMTP "envelope"
information used to route a message and the email headers, which are
(perversely) normally ignored for routing.

The second thing is how to write mailets.
This will be very much easier if you know enough about how mail works to
understand the code in james own mailets, and how james achieves standard
Message changes (as opposed to routing/delivery) are done through the java
mail API which is way more complex and perverse than the Mailet API. So
take your understanding of MIME and learn how to use
"javax.mail.internet.MimeMessage" to create and alter messages.

You might also find Claude Duguay's article useful:


> I am going to be working on a project to create mailets to be used with
James.  My first mailet will be to strip attachments from emails with
destination addresses that match certain criteria. - any suggestions on
where to look for some good tutorials, introduction, etc??

The information in this e-mail is confidential and for use by the addressee(s) only. If you
are not the intended recipient (or responsible for delivery of the message to the intended
recipient) please notify us immediately on 0141 306 2050 and delete the message from your
computer. You may not copy or forward it or use or disclose its contents to any other person.
As Internet communications are capable of data corruption Student Loans Company Limited does
not accept any  responsibility for changes made to this message after it was sent. For this
reason it may be inappropriate to rely on advice or opinions contained in an e-mail without
obtaining written confirmation of it. Neither Student Loans Company Limited or the sender
accepts any liability or responsibility for viruses as it is your responsibility to scan attachments
(if any). Opinions and views expressed in this e-mail are those of the sender and may not
reflect the opinions and views of The Student Loans Company Limited.

This footnote also confirms that this email message has been swept for the presence of computer


To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message