Added x-header.

This commit is contained in:
Martin Edenhofer 2012-08-06 08:29:54 +02:00
parent 1d36426108
commit c1076e3856

View file

@ -10,14 +10,17 @@ class Channel::EmailBuild
if organization then; if organization then;
mail['Organization'] = organization.to_s mail['Organization'] = organization.to_s
end end
# notification # notification
if notification if notification
attr['X-Loop'] = 'yes' attr['X-Loop'] = 'yes'
attr['Precedence'] = 'bulk' attr['Precedence'] = 'bulk'
attr['Auto-Submitted'] = 'auto-generated' attr['Auto-Submitted'] = 'auto-generated'
end end
attr['X-Powered-BY'] = 'OTRS - Open Ticket Request System (http://otrs.org/)'
attr['X-Mailer'] = 'OTRS Mail Service (3.0.12)'
# set headers # set headers
attr.each do |key, v| attr.each do |key, v|
if key.to_s != 'attachments' && key.to_s != 'body' if key.to_s != 'attachments' && key.to_s != 'body'