Check the bugs on Email::MIME.
IIRC there's an error when the response is '' which is legal but not handled by the code.

I submitted a bug a couple of years ago and I don't believe it's been fixed.

I found MIME::Tools to be the absolute best in parsing MIME content in it's ability to give me meaningful information back and to avoid errors. It's an oldie but a goodie. Another might be MIME::Fast which is based on gmime.
On Jun 20, 2007, at 10:49 AM, Tom Phoenix wrote:


On 6/20/07, Tony marquis <[EMAIL PROTECTED]> wrote:

I'm trying to read the body and the attachment in a mime message. I keep
getting the folling error.

Use of uninitialized value in pattern match (m//) at
/usr/share/perl5/Email/MIME/ContentType.pm line 24.

That means that at or near line 24 of the ContentType.pm file, there's
a pattern match. Either the pattern itself, or the string that it's
supposed to match, comes from a variable; but that variable held undef
when Perl got there. If you examine the code around line 24, or stop
at the right point with the debugger, you might be able to tell what's
missing.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to