commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <>
Subject RE: [email] MBoxMimeMessage
Date Mon, 05 Dec 2005 16:49:24 GMT

There's one problem with the code.  You can't use a SimpleDateFormat in
multiple threads.  They're not thread-safe ("Date formats are not
synchronized. It is recommended to create separate format instances for each
thread. If multiple threads access a format concurrently, it must be
synchronized externally.").  I actually fixed a bug in Tomcat where they
were doing the same thing.  Just create a SimpleDateFormat every time you
need it.


-----Original Message-----
From: Martin van den Bemt [] 
Sent: Monday, December 05, 2005 10:20 AM
To: Jakarta Commons Developers List
Subject: Re: [email] MBoxMimeMessage

Looks usefull..
+1 :)

Don't forget the software grant ;)


Henri Yandell wrote:
> I'd like to add the work in's gj-mail to [email] if I may.
> It's a small package with two classes that do the following things:
> 1) Mailer class for easy emailing.
> 2) Template style emailing; ${foo} etc.
> 3) MBoxMimeMessage
> Now, 1) should be unnecessary, I assume [email] already does this. 2)
> is unwanted, user's should use velocity or some other template engine.
> 3) is the bit I'd like to add.
> It allows messages that look liks SMTP, or mbox emails, rather than
> just containing the message. So the From:, To:, Subject: etc etc are
> all in there. This makes for a much nicer time if someone is using a
> template style system for emailing as the person modifying the
> template can handle these issues instead of asking the coder.
> Attachments are buggy, so I'd commit time to fixing these if the
> MBoxMimeMessage looks attractive to the community. I'd
> javadoc/unit-test obviously and would be able to kill gj-mail in
> favour of [email].
> Any interest?
> Source can be seen at:
> Hen
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message