2018-11-05 23:45:35 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-07-16 05:23:15 -04:00
|
|
|
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
|