]> git.pld-linux.org Git - packages/cvsspam.git/commitdiff
- fixed patch (original diff was against debug code)
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 21 Feb 2005 19:55:45 +0000 (19:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cvsspam-encode_email_personal_name.patch -> 1.2

cvsspam-encode_email_personal_name.patch

index 2ce89a800888def6cbc16e810e57b541bd99156f..a2795add8f4d253476a99f8754619ed5d81be39d 100644 (file)
@@ -1,10 +1,5 @@
-Index: cvsspam.rb
-===================================================================
-RCS file: /var/lib/cvs/cvsspam/cvsspam.rb,v
-retrieving revision 1.65
-diff -u -r1.65 cvsspam.rb
---- cvsspam.rb 20 Feb 2005 13:35:15 -0000      1.65
-+++ cvsspam.rb 20 Feb 2005 17:25:01 -0000
+--- cvsspam-0.2.11/cvsspam.rb  2005-02-21 21:52:45.000000000 +0200
++++ cvsspam-0.2.11.patched/cvsspam.rb  2005-02-21 21:52:18.000000000 +0200
 @@ -122,24 +122,49 @@
    # long values with header continuation lines as needed
    def rfc2047_encode_quoted(io, start, rest)
@@ -182,23 +177,18 @@ diff -u -r1.65 cvsspam.rb
  end
  
  # A handle for code that needs to add headers and a body to an email being
-@@ -1628,13 +1708,13 @@
+@@ -1628,8 +1708,8 @@
      blah("invoking '#{cmd}'")
      IO.popen(cmd, "w") do |mail|
        ctx = MailContext.new(mail) 
 -      ctx.header("To", recipients.join(','))
-+      ctx.header("To", recipients.map{|addr| addr.encoded}.join(','))
-       if from
-         blah("Mail From: <#{from}>")
-       else
-         blah("Mail From not set")
-       end
 -      ctx.header("From", from) if from
++      ctx.header("To", recipients.map{|addr| addr.encoded}.join(','))
 +      ctx.header("From", from.encoded) if from
        yield ctx
      end
    end
-@@ -1662,19 +1742,19 @@
+@@ -1657,18 +1737,18 @@
  
    def send(from, recipients)
      if from == nil
@@ -217,9 +207,8 @@ diff -u -r1.65 cvsspam.rb
 +    smtp.ready(from.address, recipients.map{|addr| addr.address}) do |mail|
        ctx = MailContext.new(IOAdapter.new(mail))
 -      ctx.header("To", recipients.join(','))
-+      ctx.header("To", recipients.map{|addr| addr.encoded}.join(','))
-       blah("Mail From: <#{from}>")
 -      ctx.header("From", from) if from
++      ctx.header("To", recipients.map{|addr| addr.encoded}.join(','))
 +      ctx.header("From", from.encoded) if from
        ctx.header("Date", Time.now.utc.strftime(DATE_HEADER_FORMAT))
        yield ctx
This page took 0.104507 seconds and 4 git commands to generate.