bamthomas / aioimaplib

Python asyncio IMAP4rev1 client library
GNU General Public License v3.0
135 stars 58 forks source link

Fix trailing whitespace bug causing "BAD Could not parse command" usi… #13

Closed jahs closed 8 years ago

jahs commented 8 years ago

…ng IDLE on GMail.

Hi, the IDLE example in the README isn't working against GMail - gives a "BAD Could not parse command". Comparing with using vanilla python imaplib, it seems GMail needs " IDLE\r\n" rather than " IDLE \r\n". Just needs a tweak to Command.repr and it works. Thanks for the hard work on the library!

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 93.886% when pulling 980f91c6892ea54d88bd02f791e16ac429c1df3b on jahs:master into 55bc9a07f888a1ba64f0e2ee40eaea1561b7d85f on bamthomas:master.

bamthomas commented 8 years ago

Maybe the line needs to be refactored to be clearer, but thank you for the fix