]> git.pld-linux.org Git - packages/cvsspam.git/commitdiff
- patch from mailinglist
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 26 Jul 2005 20:04:42 +0000 (20:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cvsspam-rfc2047_special_chars.patch -> 1.1

cvsspam-rfc2047_special_chars.patch [new file with mode: 0644]

diff --git a/cvsspam-rfc2047_special_chars.patch b/cvsspam-rfc2047_special_chars.patch
new file mode 100644 (file)
index 0000000..0acd8f9
--- /dev/null
@@ -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
+       "_"
This page took 0.027774 seconds and 4 git commands to generate.