Will this break any use-cases? (eg: do some people send commit mails to mailing lists configured to reject Precedence:bulk inbound mails?)
Would it be better to allow the user to set arbitrary headers? Example UI for mailer.py.conf: [headers] Precedence: bulk X-SVN-Id: %(repos_basename)s %(revnum)s %(date)s %(author)s olli hauer wrote on Tue, Feb 19, 2013 at 07:07:52 +0100: > I also have a small patch on my wish-list ... > > o add rfc2076 header (Precedence: bulk) > o add rfc3834 header (Auto-Submitted: auto-generated) > (this header is already honored by dovecot2) > o add special header for MS Exchange > (http://msdn.microsoft.com/en-us/library/ee219609%28v=EXCHG.80%29.aspx) > > > Index: tools/hook-scripts/mailer/mailer.py > =================================================================== > --- tools/hook-scripts/mailer/mailer.py (revision 1447596) > +++ tools/hook-scripts/mailer/mailer.py (working copy) > @@ -246,9 +246,12 @@ > hdrs = 'From: %s\n' \ > 'To: %s\n' \ > 'Subject: %s\n' \ > + 'Precedence: bulk\n' \ > + 'Auto-Submitted: auto-generated\n' \ > 'MIME-Version: 1.0\n' \ > 'Content-Type: text/plain; charset=UTF-8\n' \ > 'Content-Transfer-Encoding: 8bit\n' \ > + 'X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply\n' \ > 'X-Svn-Commit-Project: %s\n' \ > 'X-Svn-Commit-Author: %s\n' \ > 'X-Svn-Commit-Revision: %d\n' \ > > > Regards, > olli