[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bug in mailer.py

From: olli hauer <ohauer_at_gmx.de>
Date: Tue, 19 Feb 2013 07:07:52 +0100

On 2013-02-18 22:51, Daniel Shahaf wrote:
> r1447513 fixes the bug you originally reported, Nick.
>
> Peelman, Nick wrote on Mon, Feb 18, 2013 at 16:40:57 -0500:
>> While you're in there :)
>>
>> I was seeing a few more spam points than i liked, and a coupe of them were easy fixes:
>>
>> def mail_headers(self, group, params):
>
> Can you send this as a proper unidiff (`svn diff` output) against
> mailer.py_at_HEAD?
>
> See http://subversion.apache.org/patches for a few other recommendations
> that make our lives easier.
>
> Thanks,
>
> Daniel
>

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
Received on 2013-02-19 07:08:29 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.