Thunkified imap client