debian-mirror-gitlab/lib/gitlab/email/hook/additional_headers_interceptor.rb
2019-02-15 15:39:39 +05:30

14 lines
327 B
Ruby

# frozen_string_literal: true
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