mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 04:25:01 +01:00
Add mail headers to avoid auto-replies (#23597)
This commit is contained in:
parent
9377c4a87c
commit
cec59417d7
@ -7,6 +7,8 @@ class ApplicationMailer < ActionMailer::Base
|
||||
helper :instance
|
||||
helper :formatting
|
||||
|
||||
after_action :set_autoreply_headers!
|
||||
|
||||
protected
|
||||
|
||||
def locale_for_account(account)
|
||||
@ -14,4 +16,10 @@ class ApplicationMailer < ActionMailer::Base
|
||||
yield
|
||||
end
|
||||
end
|
||||
|
||||
def set_autoreply_headers!
|
||||
headers['Precedence'] = 'list'
|
||||
headers['X-Auto-Response-Suppress'] = 'All'
|
||||
headers['Auto-Submitted'] = 'auto-generated'
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user