[IMP] mail.group: set special header to disable OOF replies from MS Exchange

This commit is contained in:
Olivier Dony 2014-07-17 12:33:55 +02:00
parent 817b60de1a
commit a7d3735915
1 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,9 @@ class mail_group(osv.Model):
group = self.browse(cr, uid, id, context=context)
headers = res.setdefault('headers', {})
headers['Precedence'] = 'list'
# avoid out-of-office replies from MS Exchange
# http://blogs.technet.com/b/exchange/archive/2006/10/06/3395024.aspx
headers['X-Auto-Response-Suppress'] = 'OOF'
if group.alias_domain:
headers['List-Id'] = '%s.%s' % (group.alias_name, group.alias_domain)
headers['List-Post'] = '<mailto:%s@%s>' % (group.alias_name, group.alias_domain)