]> git.pld-linux.org Git - packages/cvsspam.git/commitdiff
- add charset to text part too, avoid double semicolon
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 5 Mar 2009 00:23:11 +0000 (00:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cvsspam-textdiff.patch -> 1.2

cvsspam-textdiff.patch

index b5034a5c35a4f7eee2c6a10969f4f8448e24eeaa..358efe6cbf93377adcb8d3d7b395600bf344f2ba 100644 (file)
@@ -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
 +    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|
This page took 0.067023 seconds and 4 git commands to generate.