Subject: | Construct an Email::MIME from an Email::Simple object |
I'm using Email::Filter to process emails and extract attachments from
them. I can use Email::Filter::simple to get the message but I really
need an Email::MIME instead.
Now I'm doing like this:
my $mime = Email::MIME->new($mail->simple()->as_string);
But I'd rather do this:
my $mime = Email::MIME->new($mail->simple());
Looking at Email::MIME constructor I see that it constructs an
Email::Simple to hold. Being given one it could simple tuck it inside, no?
Thanks for your attention.