Bug 1011597 - Use promise-based listener in test_imapPump, r=jcranmer