Skip Menu |
 

This queue is for tickets about the MIME-tools CPAN distribution.

Report information
The Basics
Id: 65112
Status: resolved
Priority: 0/
Queue: MIME-tools

People
Owner: Nobody in particular
Requestors: DOUGW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: is_multipart not accurate on type message/rfc822
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 477
Download (untitled) / with headers
text/plain 477b
I was using this to see if there were parts to the message: if ( $ent->is_multipart() ) { for my $part ($ent->parts()) { ...process parts } } But a part of type message/rfc822 reports it is not multipart, so it's contents do not get processed. I noticed in Dumper output that it had parts, so I did: my @parts = $ent->parts() if (@parts) { for my $part (@parts) { ..process parts } } and that worked. Should is_multipart report true on this type of part?
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-9726-1295977686-1048.65112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 160
Download (untitled) / with headers
text/plain 160b
On Tue Jan 25 12:41:41 2011, DOUGW wrote: Show quoted text
> > Should is_multipart report true on this type of part?
Never mind. Just now reread the docs on parts() method.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17550-1296142606-399.65112-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 76
Resolving this ticket in response to most recent message. Regards, David.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.