Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-10-11 10:45:01 +08:00
parent c29a4dddc1
commit c92bda95e1

View File

@ -484,10 +484,12 @@ module Email
end end
def subject def subject
@subject ||= begin @subject ||=
mail_subject = @mail.subject.delete("\u0000") if mail_subject = @mail.subject
mail_subject.presence || I18n.t("emails.incoming.default_subject", email: @from_email) mail_subject.delete("\u0000")
end else
I18n.t("emails.incoming.default_subject", email: @from_email)
end
end end
def find_user(email) def find_user(email)