SOURCES: cvsspam-rfc2047_special_chars.patch (NEW) - patch from ma...
glen
glen at pld-linux.org
Tue Jul 26 22:04:47 CEST 2005
Author: glen Date: Tue Jul 26 20:04:47 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- patch from mailinglist
---- Files affected:
SOURCES:
cvsspam-rfc2047_special_chars.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/cvsspam-rfc2047_special_chars.patch
diff -u /dev/null SOURCES/cvsspam-rfc2047_special_chars.patch:1.1
--- /dev/null Tue Jul 26 22:04:47 2005
+++ SOURCES/cvsspam-rfc2047_special_chars.patch Tue Jul 26 22:04:42 2005
@@ -0,0 +1,20 @@
+--- cvsspam.rb 2005-07-26 17:17:23.000000000 +0100
++++ cvsspam.rb-fix 2005-07-26 17:17:18.000000000 +0100
+@@ -116,6 +116,8 @@
+ UNDERSCORE = chr("_")
+ SPACE = chr(" ")
+ TAB = chr("\t")
++ HOOK = chr("?")
++ EQUALS = chr("=")
+
+ # encode a header value according to the RFC-2047 quoted-printable spec,
+ # allowing non-ASCII characters to appear in header values, and wrapping
+@@ -137,7 +139,7 @@
+ # return a string representing the given character-code in quoted-printable
+ # format
+ def quoted_encode_char(b)
+- if b>126 || b==UNDERSCORE || b==TAB
++ if b>126 || b==UNDERSCORE || b==TAB || b==HOOK || b==EQUALS
+ sprintf("=%02x", b)
+ elsif b == SPACE
+ "_"
================================================================
More information about the pld-cvs-commit
mailing list