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

[PATCH] Make translation status report message threaded

From: Dongsheng Song <dongsheng_at_apache.org>
Date: Thu, 10 Mar 2011 16:07:08 +0800

[[[
Make translation status report message threaded.

* tools/po/l10n-report.py: Add "In-Reply-To:" and "References:" fields
  to the translation status report message, so we can view mail more
  clearly.
]]]

oracle_at_vc:~/vcs/svn/subversion/trunk/tools/po$ svn diff .
Index: l10n-report.py
===================================================================
--- l10n-report.py (revision 1080141)
+++ l10n-report.py (working copy)
@@ -43,6 +43,7 @@
 FROM_ADDRESS = "Subversion Translation Status <noreply_at_subversion.apache.org>"
 LIST_ADDRESS = "dev_at_subversion.apache.org"
 SUBJECT_TEMPLATE = "[l10n] Translation status report for %s r%s"
+MAIL_THREAD_ID = '<translation_status_report_for_%s_at_subversion.apache.org>'

 def _rev():
   dollar = "$Revision$"
@@ -204,6 +205,8 @@
         msg["X-Mailer"] = "l10n-report.py r%s" % _rev()
         msg["Reply-To"] = LIST_ADDRESS
         msg["Mail-Followup-To"] = LIST_ADDRESS
+ msg["In-Reply-To"] = MAIL_THREAD_ID % (branch_name.replace('/', '_'))
+ msg["References"] = msg["In-Reply-To"]
         # http://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml
         msg["Auto-Submitted"] = 'auto-generated'
         msg.set_type("text/plain")

--
Dongsheng
Received on 2011-03-10 09:07:58 CET

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