[ http://issues.apache.org/jira/browse/JAMES-158?page=all ]
     
Stefano Bagnara resolved JAMES-158:
-----------------------------------

    Fix Version: 2.3.0a2
     Resolution: Fixed

This should be fixed.
Changed the default behaviour to use bytearrays only with messages smaller than 
4K and pipedinputstream/pipedoutputstream + worker thread for larger message.
Created a MessageInputStream object that automatically handle this behaviour.

Further tests are needed to check correctness of error handling (exceptions 
cought in the worker threads are stored in the main object that should throw 
them to the main thread) and to be sure resources are correctly freed.

> Stream body in JDBCMailRepository.store(Mail)
> ---------------------------------------------
>
>          Key: JAMES-158
>          URL: http://issues.apache.org/jira/browse/JAMES-158
>      Project: James
>         Type: Improvement
>   Components: MailStore & MailRepository
>     Versions: 2.1, 2.2.0
>     Reporter: Noel J. Bergman
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a2

>
> JDBCMailRepository.store(Mail) writes the entire message into a 
> ByteArrayOutputStream when not using dbfile protocol.  This is "A Bad Thing", 
> and should be changed so that the body is streamed direcly.

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


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

Reply via email to