FIX: auto response email replies should not be accepted

This commit is contained in:
Arpit Jalan
2014-12-04 22:15:31 +05:30
parent e035b07e92
commit d28515792a
3 changed files with 30 additions and 0 deletions

View File

@ -41,6 +41,7 @@ module Email
end
raise BadDestinationAddress if dest_info[:type] == :invalid
raise TopicNotFoundError if message.header.to_s =~ /auto-generated/ || message.header.to_s =~ /auto-replied/
# TODO get to a state where we can remove this
@message = message