Email-MIME-MobileJP
view release on metacpan or search on metacpan
lib/Email/MIME/MobileJP/Parser.pm view on Meta::CPAN
}
Encode::decode($enc, $_->body);
} $self->get_parts($content_type);
} else {
return map { $_->body_str } $self->get_parts($content_type);
}
}
sub get_parts {
my ($self, $content_type) = @_;
Carp::croak("missing content-type") unless defined $content_type;
my @parts;
$self->mail->walk_parts(sub {
my $part = shift;
return if $part->parts > 1; # multipart
if ($part->content_type =~ $content_type) {
push @parts, $part;
}
});
( run in 1.758 second using v1.01-cache-2.11-cpan-524268b4103 )