Although the lazy loading changes were correct, the code
was still using PublicInbox::MIME as a fixed class. Use
the `$cls' variable from the loop.
Favor ->subparts to ->parts, instead, too, since ->parts is
discouraged by the Email::MIME manpage and not implemented for
Eml.
local $SIG{__WARN__} = sub {}; # needed for old Email::Simple (used by E::M)
for my $cls (@classes) {
- my $msg = PublicInbox::MIME->new(<<'EOF');
+ my $msg = $cls->new(<<'EOF');
From: Richard Hansen <hansenr@google.com>
To: git@vger.kernel.org
Cc: Richard Hansen <hansenr@google.com>
EOF
- my @parts = $msg->parts;
+ my @parts = $msg->subparts;
my $exp = <<EOF;
Richard Hansen (2):
diff: document behavior of relative diff.orderFile