Add case for bad reply key

This commit is contained in:
riking 2014-06-23 17:46:22 -07:00
parent d2823fc5ee
commit 8b5d2b835a
2 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,8 @@ module Jobs
message_template = :email_reject_empty
when Email::Receiver::EmailUnparsableError
message_template = :email_reject_parsing
when Email::Receiver::EmailLogNotFound
message_template = :email_reject_reply_key
when ActiveRecord::Rollback
message_template = :email_reject_post_error
else

View File

@ -1351,6 +1351,13 @@ en:
The Markdown could not be processed.
email_reject_reply_key:
subject_template: "Message rejected: Bad Reply Key"
text_body_template: |
The message you've send to %{to} was rejected by the system.
The provided reply key is invalid.
too_many_spam_flags:
subject_template: "New account blocked"
text_body_template: |