You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <fl...@gmail.com> on 2005/12/04 19:19:53 UTC
[email] MBoxMimeMessage
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
Re: [email] MBoxMimeMessage
Posted by Dion Gillard <di...@gmail.com>.
Seems like a reasonable addition.
+1.
On 12/5/05, Henri Yandell <fl...@gmail.com> 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
>
>
--
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [email] MBoxMimeMessage
Posted by Henri Yandell <fl...@gmail.com>.
Will do, thanks James.
I need to rewrite the code to sit on top of [email] anyway.
Hen
On 12/5/05, James Carman <ja...@carmanconsulting.com> wrote:
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
RE: [email] MBoxMimeMessage
Posted by James Carman <ja...@carmanconsulting.com>.
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
Re: [email] MBoxMimeMessage
Posted by Martin van den Bemt <ml...@mvdb.net>.
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