aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-MIME-Tools
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2004-09-02 22:26:06 +0000
committerMartin Blapp <mbr@FreeBSD.org>2004-09-02 22:26:06 +0000
commit99bf015c4750530c0dc0a9a7ab9ba2baba532d3d (patch)
tree606d5ca7cea7c32744c1887f94fab4f460c931a9 /mail/p5-MIME-Tools
parent5efdf2fc614788e9bfda61078cf30d840ed6ec8c (diff)
downloadports-99bf015c4750530c0dc0a9a7ab9ba2baba532d3d.tar.gz
ports-99bf015c4750530c0dc0a9a7ab9ba2baba532d3d.zip
Notes
Diffstat (limited to 'mail/p5-MIME-Tools')
-rw-r--r--mail/p5-MIME-Tools/files/patch-7or8bit.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/p5-MIME-Tools/files/patch-7or8bit.diff b/mail/p5-MIME-Tools/files/patch-7or8bit.diff
new file mode 100644
index 000000000000..5e61d272e03c
--- /dev/null
+++ b/mail/p5-MIME-Tools/files/patch-7or8bit.diff
@@ -0,0 +1,20 @@
+--- lib/MIME/Head.pm.orig Sat Nov 4 20:54:46 2000
++++ lib/MIME/Head.pm Wed Aug 25 11:12:25 2004
+@@ -685,11 +685,16 @@
+ This is the default value -- that is, "Content-Transfer-Encoding: 7BIT"
+ is assumed if the Content-Transfer-Encoding header field is not present.
+
++I do one other form of fixup: "7_bit", "7-bit", and "7 bit" are
++corrected to "7bit"; likewise for "8bit".
++
+ =cut
+
+ sub mime_encoding {
+ my $self = shift;
+- lc($self->mime_attr('content-transfer-encoding') || '7bit');
++ my $enc = lc($self->mime_attr('content-transfer-encoding') || '7bit');
++ $enc =~ s{^([78])[ _-]bit\Z}{$1bit};
++ $enc;
+ }
+
+ #------------------------------