fix translation when receiving a bounce or an auto-reply

This commit is contained in:
Régis Hanol 2016-05-16 08:42:30 +02:00
parent 6077ac013b
commit 21ce674546
1 changed files with 2 additions and 2 deletions

View File

@ -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)