commons-dev mailing list archives

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

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.

James

-----Original Message-----
From: Martin van den Bemt [mailto:mllist@mvdb.net] 
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 ;)

Mvgr,
Martin

Henri Yandell wrote:
> I'd like to add the work in www.osjava.org'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:
> 
> http://www.osjava.org/genjava/multiproject/gj-mail/xref/index.html
> 
> Hen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 
> 

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



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


Mime
View raw message