From b4dc8e7115a8a05bdd2432bc8722b7a2bf0dc7d7 Mon Sep 17 00:00:00 2001 From: riking Date: Wed, 13 Aug 2014 11:47:21 -0700 Subject: [PATCH] Add error reply for new error --- app/jobs/scheduled/poll_mailbox.rb | 2 ++ config/locales/server.en.yml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/app/jobs/scheduled/poll_mailbox.rb b/app/jobs/scheduled/poll_mailbox.rb index 749dd67748e..7faf2cfb95d 100644 --- a/app/jobs/scheduled/poll_mailbox.rb +++ b/app/jobs/scheduled/poll_mailbox.rb @@ -43,6 +43,8 @@ module Jobs message_template = :email_reject_parsing when Email::Receiver::EmailLogNotFound message_template = :email_reject_reply_key + when Email::Receiver::BadDestinationAddress + message_template = :email_reject_destination when ActiveRecord::Rollback message_template = :email_reject_post_error when Email::Receiver::InvalidPost diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 2f8e599452b..49029b469bc 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -1440,6 +1440,13 @@ en: The provided reply key is invalid or unknown, so we don't know what this email is in reply to. Contact a staff member. + email_reject_destination: + subject_template: "Email issue -- Bad Destination Address(es)" + text_body_template: | + We're sorry, but your email message to %{destination} (titled %{former_title}) didn't work. + + None of the destination addresses are recognized by the forum. Please make sure that the forum is in the To: line (not CC or BCC), and that you are sending to the email address provided by the forum administrators. + email_error_notification: subject_template: "Email issue -- POP authentication error" text_body_template: |