improve error-handling when getting emails spam-rating