LILY-339: Make getting email messages async