X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FMIME.pm;h=b795b93b1054e93a43831e12b72d9683e63f99db;hb=8d1b87f498ea47bb752ea24900372df192d322fb;hp=456eed64b8c444647c75bb1c21fa10ec512ad484;hpb=aece46bdf0af3dce045797c2e897a0088e4324a5;p=public-inbox.git diff --git a/lib/PublicInbox/MIME.pm b/lib/PublicInbox/MIME.pm index 456eed64..b795b93b 100644 --- a/lib/PublicInbox/MIME.pm +++ b/lib/PublicInbox/MIME.pm @@ -24,6 +24,7 @@ use strict; use warnings; use base qw(Email::MIME); use Email::MIME::ContentType; +use PublicInbox::MsgIter (); $Email::MIME::ContentType::STRICT_PARAMS = 0; if ($Email::MIME::VERSION <= 1.937) { @@ -101,4 +102,6 @@ sub parts_multipart { } } +no warnings 'once'; +*each_part = \&PublicInbox::MsgIter::em_each_part; 1;