Skip Menu |

This queue is for tickets about the Courriel CPAN distribution.

Report information
The Basics
Id: 106176
Status: resolved
Priority: 0/
Queue: Courriel

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

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



Subject: get_body on message with attachment throws confusing error
Calling get_body on a message with an attachment produces a confusing exception as pasted below. Although I understand that get_body might not be well-defined on a multipart message, it seems like it could at least throw a better exception (or just pick a sane default). Can't locate object method "content" via package "Courriel::Part::Multipart" at /home/greg/perl5/perlbrew/perls/perl5.20.2/lib/site_perl/5.20.2/Email/Abstract/Courriel.pm line 25. Trace begun at /home/greg/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/Email/Abstract/Courriel.pm line 25 Email::Abstract::Courriel::get_body('Email::Abstract::Courriel', 'Courriel=HASH(0xc254a98)') called at /home/greg/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/Email/Abstract.pm line 102 Email::Abstract::__ANON__('Email::Abstract=ARRAY(0xc26d0d8)') called at t/lib/TestFor/MM/Report/HighVolumeMinFraudUsers.pm line 33