diff options
author | Eric Wong <e@80x24.org> | 2021-12-30 19:17:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-01-23 20:19:17 +0000 |
commit | 7ec7df4c76802f20c30b7b32ccda44b5463e7a7a (patch) | |
tree | b16aada482d15bc847dce3de1d5639450eaa1d93 | |
parent | 07cd8973baf8b0e135eb4b2248cb35bfc4413bfa (diff) | |
download | public-inbox-7ec7df4c76802f20c30b7b32ccda44b5463e7a7a.tar.gz |
Once again, our message parser class matches the more tolerant behavior of older Email::MIME releases in order to handle ancient messages. This fixes <https://bugs.debian.org/1002219>, but dropping Email::MIME entirely from the test suite may be prudent in the future.
-rw-r--r-- | t/eml.t | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -417,13 +417,14 @@ Content-Type: text/x-patch; name="=?utf-8?q?vtpm-fakefile.patch?=" Content-Disposition: attachment; filename="=?utf-8?q?vtpm-makefile.patch?=" EOF - is($cls->new($s)->filename, 'vtpm-makefile.patch', 'filename decoded'); + is($cls->new($s)->filename, 'vtpm-makefile.patch', + "filename decoded ($cls)") if $cls ne 'PublicInbox::MIME'; $s =~ s/^Content-Disposition:.*$//sm; is($cls->new($s)->filename, 'vtpm-fakefile.patch', "filename fallback ($cls)") if $cls ne 'PublicInbox::MIME'; is($cls->new($s)->content_type, 'text/x-patch; name="vtpm-fakefile.patch"', - 'matches Email::MIME output, "correct" or not'); + qq[matches Email::MIME output, "correct" or not ($cls)]); $s = <<'EOF'; Content-Type: multipart/foo; boundary=b |