FIX: Failed to show details about some bounced emails

Bounces sent to reply_by_email_address could not be found.
This commit is contained in:
Gerhard Schlager
2019-03-26 17:59:56 +01:00
parent de011b53b5
commit 4f04ae5692
4 changed files with 93 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ class IncomingEmailDetailsSerializer < ApplicationSerializer
end
def include_error_description?
@error_string[EMAIL_RECEIVER_ERROR_PREFIX]
@error_string && @error_string[EMAIL_RECEIVER_ERROR_PREFIX]
end
def headers