Merge pull request #17041 from asutherland/email-wait-for-greeting

Bug 977867 - [email/IMAP] wait for server greeting before sending commands to workaround gmail issue. r=mcav a=blocking-b2g=1.3+