trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trans-coord/gnun/server/gnun ChangeLog GNUmakef...


From: Yavor Doganov
Subject: trans-coord/gnun/server/gnun ChangeLog GNUmakef...
Date: Mon, 09 Aug 2010 16:06:33 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Yavor Doganov <yavor>   10/08/09 16:06:33

Modified files:
        gnun/server/gnun: ChangeLog GNUmakefile TODO 

Log message:
        Make generated announce emails RFC 2822-compliant.
        * GNUmakefile (extract-title): Encode the result in base64.
        (announce): Prepend MIME encoded-word components before
        $(extract-title).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.184&r2=1.185
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/GNUmakefile?cvsroot=trans-coord&r1=1.78&r2=1.79
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/TODO?cvsroot=trans-coord&r1=1.35&r2=1.36

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -b -r1.184 -r1.185
--- ChangeLog   6 Aug 2010 14:34:48 -0000       1.184
+++ ChangeLog   9 Aug 2010 16:06:33 -0000       1.185
@@ -1,3 +1,10 @@
+2010-08-09  Yavor Doganov  <address@hidden>
+
+       Make generated announce emails RFC 2822-compliant.
+       * GNUmakefile (extract-title): Encode the result in base64.
+       (announce): Prepend MIME encoded-word components before
+       $(extract-title).
+
 2010-08-06  Yavor Doganov  <address@hidden>
 
        Add support for Git repositories.

Index: GNUmakefile
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/GNUmakefile,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -b -r1.78 -r1.79
--- GNUmakefile 4 Aug 2010 21:00:47 -0000       1.78
+++ GNUmakefile 9 Aug 2010 16:06:33 -0000       1.79
@@ -225,11 +225,14 @@
 
 # The command to extract a meaningful human-readable title from a
 # .LANG.html.  Some HTML entities that are sometimes used in titles
-# are transformed, to avoid annoying stuff in email subjects.
-# Used only in article-rules, and only if ANNOUNCE=yes.
+# are transformed, to avoid annoying stuff in email subjects.  The
+# title is base64-encoded as the Subject header must comply with RFC
+# 2822, otherwise the message is rejected by the gnu.org servers
+# (sysadmin RT #600797).  Used only in article-rules, and only if
+# ANNOUNCE=yes.
 define extract-title
 $(GREP) --max-count=1 '<h2>' $$@ | $(SED) 's/<h2>\(.*\)<\/h2>/\1/' \
-  | $(SED) 's/\&mdash;/--/g' | $(SED) 's/\&..quo;/"/g'
+  | $(SED) 's/\&mdash;/--/g' | $(SED) 's/\&..quo;/"/g' | base64
 endef
 
 # Construct a command sequence suitable for `mail', if the .hook-ann
@@ -240,7 +243,7 @@
 define announce
 if test -f $$(@F).hook-ann; then \
   echo "echo '<URL:$$(subst $(rootdir),http://www.gnu.org,$$@)>' \
-  | mail -s '[$(2)] New translation: `$(extract-title)`' \
+  | mail -s '[$(2)] New translation: =?utf-8?B?`$(extract-title)`' \
     -a Keywords:$(2)-ann $(ann-addr)" > $$(@F).hook-ann; \
 fi
 endef

Index: TODO
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/TODO,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- TODO        3 Aug 2010 14:56:08 -0000       1.35
+++ TODO        9 Aug 2010 16:06:33 -0000       1.36
@@ -30,6 +30,8 @@
    Some characters as period (`.') confuse Texinfo when they appear in
    nodes' names, and xref'ing them looks extremely ugly in Info.
 
+** ANNOUNCE assumes all translations are in UTF-8.
+
 * General (when bugs are fixed)
 
 ** Add support for windows7sins.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]