commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18971] New: - [email] HTML email uses wrong MIME type?
Date Fri, 11 Apr 2003 20:17:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18971>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18971

[email] HTML email uses wrong MIME type?

           Summary: [email] HTML email uses wrong MIME type?
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: Joe@Germuska.com


Here's another commons email question:  in the change of HtmlEmail from 1.5 to 1.6, the content
subtype of the main body of the email was change from [multipart/]alternative to [multipart/]related.

I'm not sure of the rationale for this, or if it was just an oversight.  Most clients display
all of the parts in a related email -- at least, I've tested with Eudora (Mac OS X 5.2), Hotmail,
and the ATTBI.com web email client.  

However, Hotmail and ATTBI discard all but one of the parts in multipart/alternative.  This
is in keeping with the semantics of multipart/alternative  (see http://www.freesoft.org/CIE/RFC/1521/18.htm)
but it means that attachments included with the embed(URL, String) method are discarded also.
 It's my uncertainty about how to handle this that keeps me from just submitting a patch that
switches the subtype back from "related" to "alternative"  You might be able to use containers
for each of the HTML and text parts, and then include the images in them as multipart-related;
you wouldn't want to embed the images twice, but I don't know how to use references in MIME
just yet -- I think it's possible somehow.

One other note: RFC1521 says that alternative parts should appear from least attractive to
most attractive, which suggests that HtmlEmail should change the order in which it puts together
the HtmlEmail.  It seems that Hotmail obeys this specification, as my text message is all
that showed up there, while Eudora and ATTBI.com each give text/html preference even though
it appears first in the message.

Do any MIME experts have suggestions about how to handle embedded attachments together with
multipart/alternative text/* parts?  I haven't had much call to use them before, so I'm reluctant
to forge ahead implementing any particular solution.

---------------------------------------------------------------------
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