You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/07/26 23:30:04 UTC
DO NOT REPLY [Bug 35881] New: -
Allow access to MimeMessage from Email class
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35881>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35881
Summary: Allow access to MimeMessage from Email class
Product: Commons
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Email
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: dion@apache.org
Hi Dion,
a few months ago I had a chat with Eric Pugh to improve the
commons-email library and I sent Eric the diffs but they got never
applied. And I used the updated version already for for a Fulcrum
Commons EMail Service
(http://jakarta.apache.org/turbine/fulcrum/fulcrum-commonsemail/index.html)
and in production for my company.
So the questions remains if this would be a contribution suitable for
commons-email .... :-)
> Hi Eric,
>
> long story - since I'm in the middle of migrating my old Turbine
> application to CVS HEAD I stumbled across commons-email and I'm
> currently migrating a very old Turbine service for sending emails to
> use commons-email to a Fulcrum service and having a few problems, and
> .....
>
> Since the mailing list does not respond to my subscription and you are
> the main committer .... I need to patch the existing code to fulfill
> some basic requirements
>
> 1) having a few getters for basic properties of EMail would be nice
> (subject, fromAddress) to enable some diagnostic ouptut if anything
> goes wrong while creating the MimeMessage. Having said that a
> toString() implementation would not be bad either.
>
> 2) more significant I need to seperate the creation of the underlying
> MimeMessage from actually sending it, e.g. I do a lot of stuff with
> SMIME signature where you build the MimeMessage and then sign it.
> Building the MimeMessage (the hard part) is already done by
> commons-email but it would be useful to intercept the actual sending
> to provide more flexibility. I think of
>
> public final MimeMessage getMimeMessage();
> public void buildMimeMessage() throws EmailException;
> public void sendMimeMessage() throws EmailException;
>
> public void send() throws EmailException
> {
> this.buildMimeMessage();
> // now it is possible to call getMimeMessage()
> this.sendMimeMessage();
> }
>
> 3) access to the MimeMessage allows to retrieve the message id - the
> only way to keep track of message sent by the SMPT server
>
> I hope my comments make sense - could you forward the message to the
> mailing list ... as always I have little time to wait for the outcome
> of lenghty discussion so I start doing the work tommorrow ... :-)
>
> Cheers,
>
> Siegfried Goeschl
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org