mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
ignore emails that are from the reply by email addresses (#5843)
This commit is contained in:

committed by
Régis Hanol

parent
930ebb5684
commit
fac4bf2f85
@ -36,6 +36,7 @@ module Email
|
||||
def handle_failure(mail_string, e)
|
||||
message_template = case e
|
||||
when Email::Receiver::NoSenderDetectedError then return nil
|
||||
when Email::Receiver::FromReplyByAddressError then return nil
|
||||
when Email::Receiver::EmptyEmailError then :email_reject_empty
|
||||
when Email::Receiver::NoBodyDetectedError then :email_reject_empty
|
||||
when Email::Receiver::UserNotFoundError then :email_reject_user_not_found
|
||||
|
Reference in New Issue
Block a user