barbushin/php-imap — pull request #2 by temistokles (2012-12-16 00:49:02+00:00)
Title: Fixed corrupted ZIP attachments

Hi, I have fixed the bug in your code.
When I tried to use it for getting of ZIP attachments, some of them ended up with whitespaces which were trimmed by the code. This resulted in a corrupted ZIP attachments being downloaded.