summaryrefslogtreecommitdiff
path: root/lib/gitlab/email/hook/additional_headers_interceptor.rb
blob: 064cb5e659a058d1a92cfe9cb4bd52711b26d77e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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