[jboss-jira] [JBoss JIRA] Resolved: (JBMAIL-235) Switch src/java/org/jboss/mail/imap4/commands/fetch/BodyPart.java to use STREAMS not STrings

Andrew Oliver (JIRA) jira-events at jboss.com
Tue Jul 25 11:00:15 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBMAIL-235?page=all ]

Andrew Oliver resolved JBMAIL-235.
----------------------------------

    Resolution: Done

This is done.

> Switch src/java/org/jboss/mail/imap4/commands/fetch/BodyPart.java to use STREAMS not STrings
> --------------------------------------------------------------------------------------------
>
>                 Key: JBMAIL-235
>                 URL: http://jira.jboss.com/jira/browse/JBMAIL-235
>             Project: JBoss Mail
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 1.0-RC1
>            Reporter: Andrew Oliver
>         Assigned To: Jason Pugsley
>             Fix For: 1.0-RC1
>
>
> src/java/org/jboss/mail/imap4/commands/fetch/BodyPart.java
> stuff like this:
>         IMAP4ProtocolInstance p = getProtocolInstance();
>         String bod = p.getMessageBody(part);
>         return new String(part.getHeader() + "\r\n" + bod);
> sucks. 
> All stuff should stream directly to the requester and never create these strings.  See Mail.java for how to create one stream containing headers and body.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list