Add error handling for when email folder cannot be retrieved