Skip Menu |
 

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

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

People
Owner: dfs+pause [...] roaringpenguin.com
Requestors: k.asadov [...] hotmail.com
paul [...] city-fan.org
Cc: ilmari+cpan [...] ilmari.org
AdminCc:

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



Subject: t/Ref.t failing with MailTools 2.16
Download (untitled) / with headers
text/plain 2.4k
$ make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/02-kwalitee.t ................... skipped: These tests are for author or release candidate testing t/02-pod-coverage.t ............... skipped: Test::Pod::Coverage disabled. TEST_POD_COVERAGE=1 if you want it. t/02-pod.t ........................ ok t/99-prepare.t .................... ok t/attachment-filename-encoding.t .. ok t/Body.t .......................... ok t/BodyPrint.t ..................... ok # Using gzip: 1 t/Decoder.t ....................... ok t/EmptyPart.t ..................... ok t/Entity.t ........................ ok t/Filer.t ......................... ok t/Gauntlet.t ...................... ok t/Head.t .......................... ok t/Misc.t .......................... ok t/ParamVal.t ...................... ok t/Parser.t ........................ ok t/ParserEncoded.t ................. ok t/ParserPreamble.t ................ ok # Eval failed: Msg: unrecognized reference attribute: Fail # Failed test 'testmsgs/hdr-fakeout.ref Message => testmsgs/hdr-fakeout.msg, Parser => anonymous' # at t/Ref.t line 98. # Looks like you failed 1 test of 50. t/Ref.t ........................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/50 subtests t/Smtpsend.t ...................... ok t/ticket-11901.t .................. ok t/ticket-22684.t .................. ok t/ticket-37139.t .................. ok t/ticket-41632.t .................. ok t/ticket-43439.t .................. ok t/ticket-52924.t .................. ok t/ticket-5462.t ................... ok t/ticket-60931.t .................. ok t/ticket-65681.t .................. ok t/ticket-66025.t .................. ok t/ticket-71041.t .................. ok t/ticket-71677.t .................. ok t/ticket-80433.t .................. ok t/WordDecoder.t ................... ok t/WordEncoder.t ................... ok t/Words.t ......................... ok Test Summary Report ------------------- t/Ref.t (Wstat: 256 Tests: 50 Failed: 1) Failed test: 23 Non-zero exit status: 1 Files=36, Tests=430, 2 wallclock secs ( 0.08 usr 0.02 sys + 1.46 cusr 0.16 csys = 1.72 CPU) Result: FAIL Failed 1/36 test programs. 1/430 subtests failed. Makefile:901: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 Looking at the change history for MailTools, I think this change in behaviour is intended.
I can confirm this. The last version of MailTools for which this works in 2.14.
Subject: Re: [rt.cpan.org #113887] t/Ref.t failing with MailTools 2.16
Date: Thu, 21 Apr 2016 15:39:42 -0400
To: bug-MIME-tools [...] rt.cpan.org
From: Dianne Skoll <dfs [...] roaringpenguin.com>
Download (untitled) / with headers
text/plain 318b
Hi, Confirmed. MailTools 2.15 changed the way headers are parsed. This patch makes the test pass with both old and new MailTools behaviour. I am really not proud of this patch, but on the other hand MIME-tools is a giant ball of evil anyway, so a little more sin is just par for the course... Regards, Dianne.
Download mt.diff
text/x-diff 1.4k

Message body is not shown because sender requested not to inline it.

From: paul [...] city-fan.org
Download (untitled) / with headers
text/plain 415b
On Thu Apr 21 15:39:56 2016, dfs@roaringpenguin.com wrote: Show quoted text
> Hi, > > Confirmed. MailTools 2.15 changed the way headers are parsed. This patch > makes the test pass with both old and new MailTools behaviour. I am really > not proud of this patch, but on the other hand MIME-tools is a giant ball > of evil anyway, so a little more sin is just par for the course...
Ugh, yucky hack but it works. Thanks Dianne.
Download (untitled) / with headers
text/plain 429b
On Thu Apr 21 15:39:56 2016, dfs@roaringpenguin.com wrote: Show quoted text
> Hi, > > Confirmed. MailTools 2.15 changed the way headers are parsed. This patch > makes the test pass with both old and new MailTools behaviour. I am really > not proud of this patch, but on the other hand MIME-tools is a giant ball > of evil anyway, so a little more sin is just par for the course...
Thanks. Any idea when you'll get a release out with this in?
Subject: Re: [rt.cpan.org #113887] t/Ref.t failing with MailTools 2.16
Date: Mon, 25 Apr 2016 09:01:30 -0400
To: bug-MIME-tools [...] rt.cpan.org
From: Dianne Skoll <dfs [...] roaringpenguin.com>
Download (untitled) / with headers
text/plain 284b
On Mon, 25 Apr 2016 08:23:21 -0400 "David Cantrell via RT" <bug-MIME-tools@rt.cpan.org> wrote: Show quoted text
> Thanks. Any idea when you'll get a release out with this in?
No ETA yet; I'll see if there are any other open tickets to tackle and try to roll those into a release. Regards, Dianne.
Download (untitled) / with headers
text/plain 234b
Since this was reported, there has been a new release of perl. That means that the will-install-by-default MailTools will render it impossible to install MIME-tools out of the box. Could you make that new release? Thanks! -- rjbs
Subject: MIME::Parser installation fail (test fail)
Date: Fri, 26 Aug 2016 13:30:42 +0000
To: "bug-MIME-tools [...] rt.cpan.org" <bug-MIME-tools [...] rt.cpan.org>
From: Kamran Asadov <k.asadov [...] hotmail.com>
Download (untitled) / with headers
text/plain 489b
Hi, tests failure occur when trying to install MIME::Parser via: $ cpanm MIME::Parser Eventually, cpanm --notest MIME::Parser works. System is vagrant box: Linux ubuntu-14 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux This is perl 5, version 20, subversion 1 (v5.20.1) built for x86_64-linux (with 1 registered patch, see perl -V for more detail) The output of cpanm MIME::Parser is attached to this letter. Best wishes, Kamran
Download log.txt
text/plain 11.1k

Message body is not shown because sender requested not to inline it.

Hi, This is a duplicate of https://rt.cpan.org/Ticket/Display.html?id=113887 Regards, Dianne.
Download (untitled) / with headers
text/plain 129b
This issue has been fixed in MIME::Tools 5.508, available at http://search.cpan.org/~dskoll/MIME-tools-5.508/ Regards, Dianne.


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.