commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim McCabe (JIRA)" <j...@apache.org>
Subject [jira] Updated: (EMAIL-74) Create an overridable method in Email.java to create the MimeMessage instance
Date Fri, 14 Mar 2008 22:02:24 GMT

     [ https://issues.apache.org/jira/browse/EMAIL-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jim McCabe updated EMAIL-74:
----------------------------

    Description: 
I would like more control over the MimeMessage instance that is created by Email.java in buildMimeMessage().

Currently it simply instantiates one directly - new MimeMessage().  It would be nice if it
called a protected method called something like createMimeMessage() so that I could override
that with my own subclass.

Why would I want to subclass it?  So I can set the Message-Id on the outgoing message.  See
this link:

   http://java.sun.com/products/javamail/FAQ.html#msgid

I've got my own subclass ready but I have no way to hook into Email.java to use it.

  was:
I would like more control over the MimeMultipart instance that is created by Email.java in
buildMimeMessage().

Currently it simply instantiates one directly - new MimeMessage().  It would be nice if it
called a protected method called something like createMimeMessage() so that I could override
that with my own subclass.

Why would I want to subclass it?  So I can set the Message-Id on the outgoing message.  See
this link:

   http://java.sun.com/products/javamail/FAQ.html#msgid

I've got my own subclass ready but I have no way to hook into Email.java to use it.

        Summary: Create an overridable method in Email.java to create the MimeMessage instance
 (was: Create an overridable method in Email.java to create the MimeMultipart instance)

> Create an overridable method in Email.java to create the MimeMessage instance
> -----------------------------------------------------------------------------
>
>                 Key: EMAIL-74
>                 URL: https://issues.apache.org/jira/browse/EMAIL-74
>             Project: Commons Email
>          Issue Type: Improvement
>    Affects Versions: 1.1
>         Environment: All Java
>            Reporter: Jim McCabe
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I would like more control over the MimeMessage instance that is created by Email.java
in buildMimeMessage().
> Currently it simply instantiates one directly - new MimeMessage().  It would be nice
if it called a protected method called something like createMimeMessage() so that I could
override that with my own subclass.
> Why would I want to subclass it?  So I can set the Message-Id on the outgoing message.
 See this link:
>    http://java.sun.com/products/javamail/FAQ.html#msgid
> I've got my own subclass ready but I have no way to hook into Email.java to use it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message