Bug#489851: libmime-perl: MIME::Entity->new(source) does not work
Gabor Kiss
kissg at ssg.ki.iif.hu
Tue Jul 8 08:02:10 UTC 2008
Package: libmime-perl
Version: 5.420-0.1
Severity: normal
MIME::Entity(3pm) writes:
new [SOURCE]
Class method. Create a new, empty MIME entity. Basically, this
uses the Mail::Internet constructor...
If SOURCE is an ARRAYREF, it is assumed to be an array of lines
that will be used to create both the header and an in-core body.
Else, if SOURCE is defined, it is assumed to be a filehandle from
which the header and in-core body is to be read.
However MIME::Entity::new($fh) calls Mail::Internet::new($fh) that
finally calls $self->body($fh) that is unfortunately overridden by
MIME::Entity::body(). What gets crashed due to its argument.
(I assume the same problem with ARRAYREF.)
I suggest to modify manual.
Eryq (the author) says MIME::Parser is a better choice to read
preformatted MIME files anyway.
Gabor
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'proposed-updates')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.3
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages libmime-perl depends on:
ii libconvert-binhex-perl 1.119-2 Perl5 module for extracting data f
ii libio-stringy-perl 2.110-2 Perl5 modules for IO from scalars
ii libmailtools-perl 1.74-1 Manipulate email in perl programs
ii perl 5.8.8-7etch3 Larry Wall's Practical Extraction
libmime-perl recommends no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list