fix translation when receiving a bounce or an auto-reply
This commit is contained in:
parent
6077ac013b
commit
21ce674546
|
@ -30,14 +30,14 @@ module Jobs
|
|||
|
||||
set_incoming_email_rejection_message(
|
||||
receiver.incoming_email,
|
||||
I18n.t("email.incoming.errors.bounced_email_error")
|
||||
I18n.t("emails.incoming.errors.bounced_email_error")
|
||||
)
|
||||
rescue Email::Receiver::AutoGeneratedEmailReplyError => e
|
||||
log_email_process_failure(mail_string, e)
|
||||
|
||||
set_incoming_email_rejection_message(
|
||||
receiver.incoming_email,
|
||||
I18n.t("email.incoming.errors.auto_generated_email_reply")
|
||||
I18n.t("emails.incoming.errors.auto_generated_email_reply")
|
||||
)
|
||||
rescue => e
|
||||
rejection_message = handle_failure(mail_string, e)
|
||||
|
|
Loading…
Reference in New Issue