leapcode/leap_mail — pull request #147 by bwgpro (2014-08-21 21:46:24+00:00)
Title: Fix message iterator

The first commit
The MessageCollection __iter__ and get_unseen methods were creating LeapMessages without the collection reference on the constructor. That way LeapMessages delete, setFlags and some other methods would break when called.

Maybe collection should be required instead of optional on the LeapMessage constructor to avoid these problems in the future.

The second commit is about some PEP8 warnings I had on the messages file.