SOURCES: cvsspam-textdiff.patch - add charset to text part too, avoid doubl...
glen
glen at pld-linux.org
Thu Mar 5 01:23:17 CET 2009
Author: glen Date: Thu Mar 5 00:23:17 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- add charset to text part too, avoid double semicolon
---- Files affected:
SOURCES:
cvsspam-textdiff.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/cvsspam-textdiff.patch
diff -u SOURCES/cvsspam-textdiff.patch:1.1 SOURCES/cvsspam-textdiff.patch:1.2
--- SOURCES/cvsspam-textdiff.patch:1.1 Thu Mar 27 13:45:03 2008
+++ SOURCES/cvsspam-textdiff.patch Thu Mar 5 01:23:11 2009
@@ -1,4 +1,4 @@
---- ../cvsspam2/cvsspam-0.2.12/cvsspam.rb 2005-07-11 16:53:29.000000000 +0100
+--- cvsspam.rb 2005-07-11 16:53:29.000000000 +0100
+++ cvsspam.rb 2007-09-21 11:08:17.000000000 +0100
@@ -590,6 +590,42 @@
end
@@ -614,3 +614,33 @@
+ make_html_email(body, boundary)
end
end
+--- cvsspam.rb 2009-03-05 02:14:14.149660640 +0200
++++ cvsspam.rb 2009-03-05 02:06:57.409693131 +0200
+@@ -1943,8 +1943,9 @@
+ # generate the email header (and footer) having already generated the diffs
+ # for the email body to a temp file (which is simply included in the middle)
+ def make_html_email(mail, boundary)
++
+ mail.puts("--#{boundary}")
+- mail.puts("Content-Type: text/html;" + ($charset.nil? ? "" : "; charset=\"#{$charset}\""))
++ mail.puts("Content-Type: text/html" + ($charset.nil? ? "" : "; charset=\"#{$charset}\""))
+ mail.puts("Content-Disposition: inline\n\n");
+ mail.puts(<<HEAD)
+ <html>
+@@ -2378,12 +2379,10 @@
+ end
+
+ def make_text_email(mail, boundary)
+- mail.puts(<<HEAD)
+---#{boundary}
+-Content-Type: text/plain; charset=us-ascii
+-Content-Disposition: inline
+-
+-HEAD
++
++ mail.puts("--#{boundary}")
++ mail.puts("Content-Type: text/plain" + ($charset.nil? ? "" : "; charset=\"#{$charset}\""))
++ mail.puts("Content-Disposition: inline\n\n");
+
+ haveTags = false
+ Repository.each do |repository|
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/cvsspam-textdiff.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list