Supports retrieving emails over API.