Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-MIME CPAN distribution.

Report information
The Basics
Id: 48897
Status: rejected
Priority: 0/
Queue: Email-MIME

People
Owner: Nobody in particular
Requestors: GNUSTAVO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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.
Although it would be possible to add ->new($simple) it is unlikely to ever be more than just a wrapper for ->new($simple->as_string) for reasons that are boring, but real. Keep doing that. We'll see about removing those versions as we can. -- rjbs