[ 
https://issues.apache.org/jira/browse/MIME4J-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616168#action_12616168
 ] 

Stefano Bagnara commented on MIME4J-65:
---------------------------------------

Forgot to say that there is space for optimization in the patch I submitted: 
the 

new Base64OutputStream(new OutputStreamWriter(new LineBreakingOutputStream(out, 
76)) {

            public void close() throws IOException {
                // do not close wrapped stream but flush them
                flush();
            }
            
        });

could be easily wrapped in a single stream filter to decrease calls and streams 
buffers creation. I'll leave this to him, who decide to take the code from here.

> Message.writeTo for an rfc822 part ignoring a "base64" encoding
> ---------------------------------------------------------------
>
>                 Key: MIME4J-65
>                 URL: https://issues.apache.org/jira/browse/MIME4J-65
>             Project: Mime4j
>          Issue Type: Bug
>    Affects Versions: 0.4
>            Reporter: Stefano Bagnara
>             Fix For: 0.4, 0.5
>
>         Attachments: MIME4J-65-complete.patch, MIME4J-65.patch, 
> testmsgs-message-rfc822-encoding.zip
>
>
> the writeTo method for a Content-Transfer-Encoding: base64 and Content-Type: 
> message/rfc822 part writes the message unencoded.
> I would expect it to be encoded in a base64 stream. See MIME4J-64 for an 
> useful test.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to