DEB: fix typo
[IMAP] fix byte counter

do not count an error (-1) as bytes when reading from underlying mime stream
IMAP: try to handle read errors on underlying mime stream