debian-mirror-gitlab/lib/gitlab/email/hook/additional_headers_interceptor.rb
2019-01-03 12:48:30 +05:30

12 lines
296 B
Ruby

module Gitlab
module Email
module Hook
class AdditionalHeadersInterceptor
def self.delivering_email(message)
message.header['Auto-Submitted'] ||= 'auto-generated'
message.header['X-Auto-Response-Suppress'] ||= 'All'
end
end
end
end
end