[rt-users] MIME::Parser: can't open tmpfile: Invalid argument
Sergey Gurov
cec2000 at mail.ru
Wed Mar 26 09:46:46 EST 2003
Yes, that works, although it is not an answer. Try to comment out
$parser->output_to_core() and send plaint text mail. It works for me! It
means that for the main message body parser does create disk tmp file.
After that it cannot.
BTW MIME::Parser man states that in-core tmp files work slower that
disk-based.
Sergey.
>-----Original Message-----
>From: Matt Jonkman [mailto:matt at infotex.ws]
>Sent: Wednesday, March 26, 2003 4:32 PM
>To: 'Sergey Gurov'; rt-users at lists.fsck.com
>Subject: RE: [rt-users] MIME::Parser: can't open tmpfile:
>Invalid argument
>
>
>I fiddled around with what the original poster mentioned and got it to
>work. Although I'm really curious why this is.
>
>If you find this block in lib/RT/Interface/Email.pm:
>
>
> # If content length is <= 20000 bytes, store each msg as in-core
>scalar;
> # Else, write to a disk file (the default action):
>
> $parser->output_to_core(20000);
>
>
>And just add
>
> $parser->tmp_to_core(20000);
>
>Right below that it'll work like a champ.
>
>Matt
More information about the rt-users
mailing list