[SCM] Debian packaging of libmime-lite-perl branch, master, updated. e41cf9081b17f74f9c02d8cb90dc608870c2ea07

Florian Schlichting fschlich at zedat.fu-berlin.de
Wed Sep 7 14:42:18 UTC 2011


The following commit has been merged in the master branch:
commit 3c5de65ee340bdb82367b2d237cf19a2dc0d6317
Author: Florian Schlichting <fschlich at zedat.fu-berlin.de>
Date:   Wed Sep 7 14:16:42 2011 +0000

    pluck two patches from upstream RT
    
    ...both authored by me, incidentally, for bugs biting me or that I felt
    were sufficiently easy to fix...

diff --git a/debian/changelog b/debian/changelog
index 7688f16..f27b839 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ libmime-lite-perl (3.027-2) UNRELEASED; urgency=low
   * Bump compatibility level to 8.
   * Switch to source format 3.0 (quilt).
   * Refresh d/copyright.
+  * Pluck two patches from upstream RT:
+    - fix_MIME-Version_hardwired.patch (Closes: #460395)
+    - remove_extra_newline.patch
 
  -- Florian Schlichting <fschlich at zedat.fu-berlin.de>  Wed, 07 Sep 2011 13:35:03 +0000
 
diff --git a/debian/patches/fix_MIME-Version_hardwired.patch b/debian/patches/fix_MIME-Version_hardwired.patch
new file mode 100644
index 0000000..5557435
--- /dev/null
+++ b/debian/patches/fix_MIME-Version_hardwired.patch
@@ -0,0 +1,21 @@
+Description: make it possible to manipulate/delete the MIME-Version header
+Origin: https://rt.cpan.org/Public/Bug/Display.html?id=35979
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460395
+
+--- a/lib/MIME/Lite.pm
++++ b/lib/MIME/Lite.pm
+@@ -1146,12 +1146,12 @@
+     my ( $self, $onoff ) = @_;
+     my $attrs = $self->{Attrs};
+     if ($onoff) {
+-        $attrs->{'MIME-Version'} = '1.0';
++        $attrs->{'mime-version'} = '1.0';
+         my $uses = ( @Uses ? ( "(" . join( "; ", @Uses ) . ")" ) : '' );
+         $self->replace( 'X-Mailer' => "MIME::Lite $VERSION $uses" )
+           unless $VANILLA;
+     } else {
+-        delete $attrs->{'MIME-Version'};
++        delete $attrs->{'mime-version'};
+         $self->delete('X-Mailer');
+     }
+ }
diff --git a/debian/patches/remove_extra_newline.patch b/debian/patches/remove_extra_newline.patch
new file mode 100644
index 0000000..558de51
--- /dev/null
+++ b/debian/patches/remove_extra_newline.patch
@@ -0,0 +1,25 @@
+Description: remove extra newline in MIME structure
+ MUA from MS will barf at the signature when wrapped in SMIME
+Origin: https://rt.cpan.org/Public/Bug/Display.html?id=63253
+
+--- a/lib/MIME/Lite.pm
++++ b/lib/MIME/Lite.pm
+@@ -2179,7 +2179,7 @@
+         }
+ 
+         ### Epilogue:
+-        $out->print("\n--$boundary--\n\n");
++        $out->print("\n--$boundary--\n");
+     } elsif ( $type =~ m{^message/} ) {
+         my @parts = @{ $self->{Parts} };
+ 
+--- a/t/types.t
++++ b/t/types.t
+@@ -65,7 +65,6 @@
+ 
+ This isn't really html. We are only checking the filename silly.
+ --_----------=_0--
+-
+ EOFEXPECT
+ 
+ is($ret, $expect, "we got the message we expected");
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a785f43
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix_MIME-Version_hardwired.patch
+remove_extra_newline.patch

-- 
Debian packaging of libmime-lite-perl



More information about the Pkg-perl-cvs-commits mailing list