Add imap server handling
Merge branch 'master' of https://github.com/weidongshao/sq1