Hey guys,

I think I would like to put in a bug for the behavior I found below?

On Fri, Dec 4, 2015 at 11:10 AM, <[email protected]> wrote:

Thank I found the issue. For certain instances our Message.getBodyContent or 
getFullContent may return a FileInputStream.

In ChannelImapResponseWriter.write if the InputStream of the passed in Literal 
is instanceof FileInputStream a ChunkedNioFile gets used instead of 
DefaultFileRegion or ChunkedStream.

As a quick test I wrapped my FileInputStream with a BufferedInputStream and now 
everything works. I still have no idea why a ChunkedNioFile fails but I imagine 
that not many Mailbox implementations are returning FileInputStream and thus no 
one else is really seeing this issue.

Regards,
Roy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to