RSS | Module Info | Add a review of MIME-tools

5 out of 9 found this review helpful:

MIME-tools (5.423) ***

You should not remove a function, but rather make it do nothing.
Removing tmp_recycling breaks SOAP::Packager as well as our customer support system RT http://www.bestpractical.com/rt

Jørgen Thomsen - 2007-09-30 18:16:02
Was this review helpful to you?  Yes No

1 out of 12 found this review helpful:

MIME-tools (5.420) *

It is junk code for win32

Ref:

http://rt.cpan.org/Public/Bug/Display.html?id=25091

http://search.cpan.org/src/DSKOLL/MIME-tools-5.420/examples/README

Syed Rizwan - 2007-02-23 00:54:53
Was this review helpful to you?  Yes No

5 out of 5 found this review helpful:

MIME-tools (5.418) *****

I could not begin to imagine how difficult and time-consuming it would be to deal with MIME-encoded e-mail messages without this set of modules. You can build a CGI that takes a raw SMTP message and webify it, with clickable attachement links, in about 100 lines of code (as I just did).

You do wind up writing a certain amount of make-work code, suggesting that perhaps the distribution's interface is a little too low-level, which in turn probably means you have to a certain amount of time flipping between the documentation of certain modules to get the result you want, but on the other hand, learning how it all fits together gives you a trememndous amount of flexibility.

Specific case in point, I may have been going about it the wrong way, but it took me quite a bit of effort, both in reading the documentation and writing snippets of code to figure out how to decode base64 attachements. As a minimum, I came up with

my $p = $msg->parts(1); # assuming 2nd part is the one we want
my @body;
eval {@body = @{$p->body}};
$@ and die $@;
print decode_base64(join('', @body));

To me, that seems like an awful amount of work. I'd like to be able to say something like

print $msg->parts(1)->decoded;

and it would Just Work.

The Big Five you really should take the time to study are, in order MIME::Entity, MIME::Parser, MIME::Body, MIME::Head and MIME::Decoder. A priceless tool to have in your toolbox.

(edit: typo corrected)

david landgren - 2005-10-18 06:40:04
Was this review helpful to you?  Yes No


the camel