Description
When reading the attachment streams using ins.read(buf, 300, 500) or similar (using the middle of a byte buffer), when a boundary is reached, not all the data is pushed back. The result is that attachment headers get lost and thus attachments are not found.