Update Imap.php
Update Imap.php

Fixed two similar bugs that were on lines 183 and 520. Also added closing ?> bracket.
Update Imap.php
Merge pull request #4 from MikeWillis/master

Minor bug fix