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

[PATCH] mailer.py: Add Content-Transfer-Encoding

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-04-10 21:03:37 CEST

Does the attached patch make sense? I've not tested it, just cargo-culted
it across from commit-email.{pl.in,rb}.

At the moment my mailserver (Courier) whines whenever I get a commit
message that contains non-ASCII text (which is actually a fair number
of them).

[[[
* tools/hook-scripts/mailer/mailer.py
  (MailedOutput.mail_headers): Add a 'Content-Transfer-Encoding: 8bit'
    header to go with the UTF-8 content-type, so that the message can
    legally contain 8-bit characters.
]]]

Regards,
Malcolm

Index: tools/hook-scripts/mailer/mailer.py
===================================================================
--- tools/hook-scripts/mailer/mailer.py (revision 19298)
+++ tools/hook-scripts/mailer/mailer.py (working copy)
@@ -202,6 +202,7 @@
            'Subject: %s\n' \
            'MIME-Version: 1.0\n' \
            'Content-Type: text/plain; charset=UTF-8\n' \
+ 'Content-Transfer-Encoding: 8bit\n' \
            % (self.from_addr, string.join(self.to_addrs, ', '), subject)
     if self.reply_to:
       hdrs = '%sReply-To: %s\n' % (hdrs, self.reply_to)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 10 21:04:17 2006

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

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