]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/MIME.pm
msg_iter: make ->each_part method for PublicInbox::MIME
[public-inbox.git] / lib / PublicInbox / MIME.pm
index 54925a853258bf6856010f525f24832a1ad7ea8f..b795b93b1054e93a43831e12b72d9683e63f99db 100644 (file)
@@ -23,6 +23,9 @@ package PublicInbox::MIME;
 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) {
 sub parts_multipart {
@@ -99,4 +102,6 @@ sub parts_multipart {
 }
 }
 
+no warnings 'once';
+*each_part = \&PublicInbox::MsgIter::em_each_part;
 1;