MIME::Parser and Purge / Prune

A

afrinspray

I'm using MIME Parser to parse emails for a listserv application.
Everything works great except for the final cleanup stage. I end up
with literally hundreds of directories (one per message) which aren't
pruned upon completion. I could rm -rf them, but I'm guessing that I'm
not telling MIME::parser to clean up correctly. Here's my code:

$parser = new MIME::parser;
$parser->output_under("/tmp");
$parser->output_prefix("msg");
$parser->decode_headers(0);
$parser->extract_nested_messages(0);
$parser->extract_uuencode(1);
$parser->ignore_errors(1);

[...parsing...]

$parser->filer->purge;

I end up with hordes of /tmp/msg- directories. Did I miss a step here?
Does the output_under directive intentionally leave a copy there? I
was under the impression that purge should remove the directories.


Thanks,
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top