about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-08-04 20:16:51 +0000
committerEric Wong <e@80x24.org>2014-08-04 20:16:51 +0000
commitc9ea7a39daff28e0c75df8b5853fbd4a9bda6bba (patch)
treedba3824f88c033f409174261afd2fc892bc2b933 /lib
parented28a3b51a9b3746ed51ad98c6a69449f22ed81d (diff)
downloadpublic-inbox-c9ea7a39daff28e0c75df8b5853fbd4a9bda6bba.tar.gz
HTML clients also tend to send quoted-printable crap in
their plain-text parts, preserve that so it's displayed
correctly for all QP-capable handlers.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Filter.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/Filter.pm b/lib/PublicInbox/Filter.pm
index a1587682..e784cded 100644
--- a/lib/PublicInbox/Filter.pm
+++ b/lib/PublicInbox/Filter.pm
@@ -201,6 +201,10 @@ sub collapse {
         my ($mime, $part) = @_;
         $mime->header_set('Content-Type', $part->content_type);
         $mime->body_set($part->body_raw);
+        my $cte = $part->header('Content-Transfer-Encoding');
+        if (defined($cte) && length($cte)) {
+                $mime->header_set('Content-Transfer-Encoding', $cte);
+        }
         mark_changed($mime);
         return 1;
 }