|
(From update of attachment 14506)
Index: c:/projects3.0/commons-email/src/java/org/apache/commons/mail/MultiPartEmail.ja va =================================================================== — c:/projects3.0/commons-email/src/java/org/apache/commons/mail/MultiPartEmail.ja va (revision 157757) +++ c:/projects3.0/commons-email/src/java/org/apache/commons/mail/MultiPartEmail.ja va (working copy) @@ -19,13 +19,16 @@ import java.io.IOException; import java.io.InputStream; import java.net.URL; + import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.activation.URLDataSource; +import javax.mail.BodyPart; import javax.mail.MessagingException; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMultipart; + import org.apache.commons.lang.StringUtils; /** /** The message container. */
/** The MIME subtype. */
initialized = true; else
@@ -392,7 +397,7 @@
return this;
@@ -437,6 +442,23 @@ + /** /**
+ /** (From update of attachment 14506)
Index: c:/projects3.0/commons-email/src/java/org/apache/commons/mail/MultiPartEmail.ja va =================================================================== — c:/projects3.0/commons-email/src/java/org/apache/commons/mail/MultiPartEmail.ja va (revision 157757) +++ c:/projects3.0/commons-email/src/java/org/apache/commons/mail/MultiPartEmail.ja va (working copy) @@ -19,13 +19,16 @@ import java.io.IOException; import java.io.InputStream; import java.net.URL; + import javax.activation.DataHandler; import javax.activation.DataSource; import javax.activation.FileDataSource; import javax.activation.URLDataSource; +import javax.mail.BodyPart; import javax.mail.MessagingException; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMultipart; + import org.apache.commons.lang.StringUtils; /** /** The message container. */
/** The MIME subtype. */
initialized = true; else
@@ -392,7 +397,7 @@
return this;
@@ -437,6 +442,23 @@ + /** /**
+ /** Created an attachment (id=14513)
proposed patch Created an attachment (id=14518)
proposed patch Would it be possible to get this patch accepted into v1.0? It doesn't alter
the application, it merely provides subclasses with a means of overriding the BodyPart type that is constructed. In reviewing this patch, I didn't understand this line:
Why isn't it getPrimaryBodyPart().setText(msg,charset); as well? also, I could not get the patch to apply The reason for the charset change is because I altered the method signature for
getPrimaryBodyPart() to return the superclass:
As a result, the method setText(String, CharSet) doesn't exist in BodyPart, but If you're ok with this, and the rest of the changes that I made, I'll go ahead T Okay, but dropping that signature I think is going to break a lot of usecase, correct? We need to make
sure we aren't making the changes that break all the installations in odd ways by losing charset support. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
proposed patch