On Tue, 27 Nov 2007 22:21:06 +0100
"Filip Sneppe" <[EMAIL PROTECTED]> wrote:
> I am calling this code like this:
>
> my $parser = new MIME::Parser;
> $entity = $parser->parse_data($lines);
> $convertedstring = convert_mime_to_8bit($log_fh, $loglevel,
> $entity, "");
>
> where $lines is a reference to an array (of lines containing the original
> mail).
>
> While the code itself does convert parts of the mail to 8bit, here are
> two problems
> with it:
> - for some reason, for every attachment in the email, it creates files on the
> local filesystem. I don't want to have to clean these up manually.
>From the MIME::Parser docs:
> Examples of output control
>
> ### Keep parsed message bodies in core (default outputs to disk):
> $parser->output_to_core(1);
>
> ### Output each message body to a one-per-message directory:
> $parser->output_under("/tmp");
>
> ### Output each message body to the same directory:
> $parser->output_dir("/tmp");
>
> ### Change how nameless message-component files are named:
> $parser->output_prefix("msg");
And see the section "Specifying output destination" for the precise
specification.
Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/