Skip Menu |

This queue is for tickets about the MailTools CPAN distribution.

Report information
The Basics
Id: 78042
Status: resolved
Priority: 0/
Queue: MailTools

People
Owner: Nobody in particular
Requestors: rod.taylor [...] gmail.com
Cc:
AdminCc:

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



Subject: Domainkey-Signature with Perl 5.14.2
MIME::Parser 5.0.3 on Perl 5.12.4 seems to parse the attached message fine but with Perl 5.14.2 I receive the below error message. Bad RFC822 field name 'Domainkey-Signature' at .../perls/perl-5.14.2/lib/site_perl/5.14.2/MIME/Parser.pm line 641 I'm uncertain if the lowercaseing of the K in DomainKey could be related to the issue. MIME::Parser 5.0.2 fails in exactly the same way (fine on perl 5.12, fails on perl 5.14).
Subject: domainkey.eml
Download domainkey.eml
message/rfc822 5.2k
Return-Path: <VHFDIS@rogers.com> Delivery-Date: Mon, 25 Jun 2012 12:10:04 -0400 Received: from nm2-vm0.bullet.mail.ac4.yahoo.com (nm2-vm0.bullet.mail.ac4.yahoo.com [98.139.52.66]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0LeO2v-1S4fVx2ZLh-00q1SD for FDSFJDSJKLF@FDSFJDSJKLF.com; Mon, 25 Jun 2012 12:10:04 -0400 Received: from [98.139.52.189] by nm2.bullet.mail.ac4.yahoo.com with NNFMP; 25 Jun 2012 16:10:01 -0000 Received: from [98.139.52.140] by tm2.bullet.mail.ac4.yahoo.com with NNFMP; 25 Jun 2012 16:10:01 -0000 Received: from [127.0.0.1] by omp1023.mail.ac4.yahoo.com with NNFMP; 25 Jun 2012 16:10:01 -0000 X-Yahoo-Newman-Id: 237591.89413.bm@omp1023.mail.ac4.yahoo.com Received: (qmail 49541 invoked from network); 25 Jun 2012 16:10:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:X-rim-org-msg-ref-id:Message-ID:Content-Transfer-Encoding:Reply-To:X-Priority:Sensitivity:Importance:Subject:To:From:Date:Content-Type:MIME-Version; b=r5dUnocMEolf8exvFbhNJoS1s7YVwagFopPAvv8FuKJpGNuBqpo593jlq2l6p/a32HiO/vvAYtmk3QCIa62E4XLOAiVJYM22FChwrnVcVBjAwgplaV/59ZhmfO8ZBtS+NP/DH0sWelOzCCmjEPoKsJ6tzXDHTgxHG0keIGajKhA= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s1024; t=1340640600; bh=FDKqKGLWMvUHjZAf5LdfEv2itJVJNmTD45lZjIdvY+g=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:X-rim-org-msg-ref-id:Message-ID:Content-Transfer-Encoding:Reply-To:X-Priority:Sensitivity:Importance:Subject:To:From:Date:Content-Type:MIME-Version; b=gmFypzw9CioFRYewaEX7GUTdqyr5drgIJR3miwwP+OzovsxL3tfxb5bPU0wfahY7i9oabQBNRj00A+Q4KN2I53IpCMh0PZ6J1FNWnNBOatDxpdRgEnec4us72Im6ZgxkhRtoBUQdyOhjFYrpqVt2tU/9AYxpy7GSOYS0HdEkv0Y= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1eo07vUVM1nY0UkNnBEXQT2CeGY_mHpu92Yq4eXyZaqyIFT 6HEOPW2311UH_zHA1poUT6D_wcpkQamSa2xstFhorUQU_L4xs4xmE4OGFq7T Ef9_yi08yn1DdaUZwdLmab7Q56ZjgrnVNuVWEvTgWwGCTuhyWVQ5gyPzvEyc LHwWjXQynukFsdM4UYlddwV6vhwVnFt_lC4dZwiyOoW4.XEqLmksa0tNYi8S iQV6RwlT9LVH8cjLtmlUyBREEq3dtgawc2KTScwBnU3U1dGBlkb8AOmUvbDu nNw5XSXR3bQQzQADrSP7nR1ZPfYDw79wiDa29hrelLzlXTrRb2kFKhpo_b8Z QMEhX5cONNpAxGUTHrLVkzNfOnfL2FhAx1BQcqMXSznJGQZycKkXak4uOhAD s3p2QZ7FQyMUPxcQ4bbMi0TPfnz.NMmIuiQNwBiF_QFtXBFeOQCg- X-Yahoo-SMTP: HJRwv..swBBRn2mQRhwRyEBoB5ZQulgLRZwXJfXpTp4EKTzawi4w Received: from b3.c18.bise6.blackberry (marlenespurrell@74.82.84.122 with xymcookie) by smtp104-mob.biz.mail.ac4.yahoo.com with SMTP; 25 Jun 2012 09:10:00 -0700 PDT X-rim-org-msg-ref-id:1177221583 Message-ID:<1177221583-1340640599-cardhu_decombobulator_blackberry.rim.net-1588346634-@b26.c18.bise6.blackberry> Content-Transfer-Encoding: base64 Reply-To: VHFDIS@rogers.com X-Priority: Normal Sensitivity: Normal Importance: Normal Subject: Re: UrbanDB Lead Assigned:: Mendes, Sabrina To: FDSFJDSJKLF@urbandb.com From: VHFDIS@rogers.com Date: Mon, 25 Jun 2012 16:10:00 +0000 Content-Type: text/plain; charset="Windows-1252" MIME-Version: 1.0 X-UI-Loop: V01:MCq2bJfV1wQ=:jw3eyG4GoVUCBd1XfxbLw5t0RgCBvJW/pIUAH1q5nLE= Envelope-To: FDSFJDSJKLF@urbandb.com IkkgQUNDRVBUIHRoaXMgbGVhZCBhbmQgd2lsbCBtZWV0IHRoZSByZXF1aXJlbWVudHMgb2YgdGhl IHdyaXR0ZW4gYWdyZWVtZW50IHNpZ25lZCB3aXRoIFJvZCBUYXlsb3IgU2FsZXNwZXJzb24gd2l0 aCBXZWIgTWF4IFJlYWx0eSBJbmMuIg0KDQotLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0tDQpG cm9tOiBsZWFkc0B1cmJhbmRiLmNvbQ0KVG86IG1hcmxlbmVzcHVycmVsbEByb2dlcnMuY29tDQpT dWJqZWN0OiBVcmJhbkRCIExlYWQgQXNzaWduZWQ6OiBNZW5kZXMsIFNhYnJpbmENClNlbnQ6IEp1 biAyNSwgMjAxMiAxMjowOSBQTQ0KDQpUaGUgY29udGFjdCBsaXN0ZWQgYmVsb3cgaGFzIHJlcXVl c3Rl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Qg Y291bnQgYWdhaW5zdCB5b3VyIHByb2ZpbGUgYnV0IGEgdGltZW91dCBtYXkuDQoNCg0KDQpOYW1l OiBNZW5kZXMsIFNhYnJpbmENCg0KQWN0aW9uOiBCdXkNCg0KQmVkcm9vbXM6IDENCg0KQnVpbGRp bmcgb2YgSW50ZXJlc3Q6IDU1IENoYXJsZXMNCg0KUGFya2luZzogTm8NCg0KVW5pcXVlIElkOiA5 NzMwNzc3MDENCg0KQnVpbGRpbmcgUmVnaW9uKHMpOiBUb3JvbnRvDQoNCkJ1aWxkaW5nIExpbmtz OiBodHRwOi8vd3d3LnVyYmFuZGIuY29tL2NhbmFkYS9vbnRhcmlvL3Rvcm9udG8vNTUtY2hhcmxl cy8NCg0KQnVpbGRpbmcgQWRkcmVzczogQWRkaXRpb25hbCBBZGRyZXNzOiA1NSBDaGFybGVzIFN0 cmVldCBXZXN0DQoNCkJ1aWxkaW5nIFN0YXR1czogQ29tcGxldGUNCg0KDQpTZW50IHdpcmVsZXNz bHkgZnJvbSBteSBCbGFja0JlcnJ5IGRldmljZSBvbiB0aGUgQmVsbCBuZXR3b3JrLg0KRW52b3np IHNhbnMgZmlsIHBhciBtb24gdGVybWluYWwgbW9iaWxlIEJsYWNrQmVycnkgc3VyIGxlIHLpc2Vh dSBkZSBCZWxsLg==
Subject: Re: [rt.cpan.org #78042] Domainkey-Signature with Perl 5.14.2
Date: Wed, 27 Jun 2012 12:54:32 -0400
To: bug-MIME-tools [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
On Mon, 25 Jun 2012 16:25:56 -0400 "Rod Taylor via RT" <bug-MIME-tools@rt.cpan.org> wrote: Show quoted text
> Bad RFC822 field name 'Domainkey-Signature' > at .../perls/perl-5.14.2/lib/site_perl/5.14.2/MIME/Parser.pm line 641
That error message is a bit misleading because it really comes from Mail::Header.pm which is part of MailTools. Could you post line 641 of MIME/Parser.pm so I can see what we're calling in MailTools? (MailTools complains if a header name lacks a colon; see http://cpansearch.perl.org/src/MARKOV/MailTools-2.09/lib/Mail/Header.pm) Regards, David.
Subject: Re: [rt.cpan.org #78042] Domainkey-Signature with Perl 5.14.2
Date: Wed, 27 Jun 2012 13:17:33 -0400
To: bug-MIME-tools [...] rt.cpan.org
From: Rod Taylor <rod.taylor [...] gmail.com>
On Wed, Jun 27, 2012 at 12:54 PM, David F. Skoll via RT < bug-MIME-tools@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=78042 > > > On Mon, 25 Jun 2012 16:25:56 -0400 > "Rod Taylor via RT" <bug-MIME-tools@rt.cpan.org> wrote: >
> > Bad RFC822 field name 'Domainkey-Signature' > > at .../perls/perl-5.14.2/lib/site_perl/5.14.2/MIME/Parser.pm line 641
> > That error message is a bit misleading because it really comes > from Mail::Header.pm which is part of MailTools. > > Could you post line 641 of MIME/Parser.pm so I can see what we're > calling in MailTools? >
Line 641 is the $head->read() line. ### Extract the header (note that zero-size headers are admissible!): open(my $readfh, '<:scalar', \$headstr) or die $!; $head->read( $readfh ); unless( $readfh->eof() ) { # Not entirely correct, since ->read consumes the line it gives up on. # it's actually the line /before/ the one we get with ->getline $self->error("couldn't parse head; error near:\n", $readfh->getline()); }
Subject: Re: [rt.cpan.org #78042] Domainkey-Signature with Perl 5.14.2
Date: Wed, 27 Jun 2012 13:25:21 -0400
To: bug-MIME-tools [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
On Wed, 27 Jun 2012 13:17:46 -0400 "Rod Taylor via RT" <bug-MIME-tools@rt.cpan.org> wrote: Show quoted text
> Line 641 is the $head->read() line.
OK... could you post the headers of the message you're trying to parse? Regards, David.
Subject: Re: [rt.cpan.org #78042] Domainkey-Signature with Perl 5.14.2
Date: Wed, 27 Jun 2012 13:47:01 -0400
To: bug-MIME-tools [...] rt.cpan.org
From: Rod Taylor <rod.taylor [...] gmail.com>
On Wed, Jun 27, 2012 at 1:25 PM, David F. Skoll via RT < bug-MIME-tools@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=78042 > > > On Wed, 27 Jun 2012 13:17:46 -0400 > "Rod Taylor via RT" <bug-MIME-tools@rt.cpan.org> wrote: >
> > Line 641 is the $head->read() line.
> > OK... could you post the headers of the message you're trying to parse? > >
The full message was included in the initial report. Headers are repeated below as extracted from that message. It complains about 'DomainKey-Signature' for reasons I cannot guess. Return-Path: <VHFDIS@rogers.com> Delivery-Date: Mon, 25 Jun 2012 12:10:04 -0400 Received: from nm2-vm0.bullet.mail.ac4.yahoo.com ( nm2-vm0.bullet.mail.ac4.yahoo.com [98.139.52.66]) by mx.perfora.net (node=mxus2) with ESMTP (Nemesis) id 0LeO2v-1S4fVx2ZLh-00q1SD for FDSFJDSJKLF@FDSFJDSJKLF.com; Mon, 25 Jun 2012 12:10:04 -0400 Received: from [98.139.52.189] by nm2.bullet.mail.ac4.yahoo.com with NNFMP; 25 Jun 2012 16:10:01 -0000 Received: from [98.139.52.140] by tm2.bullet.mail.ac4.yahoo.com with NNFMP; 25 Jun 2012 16:10:01 -0000 Received: from [127.0.0.1] by omp1023.mail.ac4.yahoo.com with NNFMP; 25 Jun 2012 16:10:01 -0000 X-Yahoo-Newman-Id: 237591.89413.bm@omp1023.mail.ac4.yahoo.com Received: (qmail 49541 invoked from network); 25 Jun 2012 16:10:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:X-rim-org-msg-ref-id:Message-ID:Content-Transfer-Encoding:Reply-To:X-Priority:Sensitivity:Importance:Subject:To:From:Date:Content-Type:MIME-Version; b=r5dUnocMEolf8exvFbhNJoS1s7YVwagFopPAvv8FuKJpGNuBqpo593jlq2l6p/a32HiO/vvAYtmk3QCIa62E4XLOAiVJYM22FChwrnVcVBjAwgplaV/59ZhmfO8ZBtS+NP/DH0sWelOzCCmjEPoKsJ6tzXDHTgxHG0keIGajKhA= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s1024; t=1340640600; bh=FDKqKGLWMvUHjZAf5LdfEv2itJVJNmTD45lZjIdvY+g=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:X-rim-org-msg-ref-id:Message-ID:Content-Transfer-Encoding:Reply-To:X-Priority:Sensitivity:Importance:Subject:To:From:Date:Content-Type:MIME-Version; b=gmFypzw9CioFRYewaEX7GUTdqyr5drgIJR3miwwP+OzovsxL3tfxb5bPU0wfahY7i9oabQBNRj00A+Q4KN2I53IpCMh0PZ6J1FNWnNBOatDxpdRgEnec4us72Im6ZgxkhRtoBUQdyOhjFYrpqVt2tU/9AYxpy7GSOYS0HdEkv0Y= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 1eo07vUVM1nY0UkNnBEXQT2CeGY_mHpu92Yq4eXyZaqyIFT 6HEOPW2311UH_zHA1poUT6D_wcpkQamSa2xstFhorUQU_L4xs4xmE4OGFq7T Ef9_yi08yn1DdaUZwdLmab7Q56ZjgrnVNuVWEvTgWwGCTuhyWVQ5gyPzvEyc LHwWjXQynukFsdM4UYlddwV6vhwVnFt_lC4dZwiyOoW4.XEqLmksa0tNYi8S iQV6RwlT9LVH8cjLtmlUyBREEq3dtgawc2KTScwBnU3U1dGBlkb8AOmUvbDu nNw5XSXR3bQQzQADrSP7nR1ZPfYDw79wiDa29hrelLzlXTrRb2kFKhpo_b8Z QMEhX5cONNpAxGUTHrLVkzNfOnfL2FhAx1BQcqMXSznJGQZycKkXak4uOhAD s3p2QZ7FQyMUPxcQ4bbMi0TPfnz.NMmIuiQNwBiF_QFtXBFeOQCg- X-Yahoo-SMTP: HJRwv..swBBRn2mQRhwRyEBoB5ZQulgLRZwXJfXpTp4EKTzawi4w Received: from b3.c18.bise6.blackberry (marlenespurrell@74.82.84.122 with xymcookie) by smtp104-mob.biz.mail.ac4.yahoo.com with SMTP; 25 Jun 2012 09:10:00 -0700 PDT X-rim-org-msg-ref-id:1177221583 Message-ID:<1177221583-1340640599-cardhu_decombobulator_blackberry.rim.net-1588346634-@b26.c18.bise6.blackberry Show quoted text
>
Content-Transfer-Encoding: base64 Reply-To: VHFDIS@rogers.com X-Priority: Normal Sensitivity: Normal Importance: Normal Subject: Re: UrbanDB Lead Assigned:: Mendes, Sabrina To: FDSFJDSJKLF@urbandb.com From: VHFDIS@rogers.com Date: Mon, 25 Jun 2012 16:10:00 +0000 Content-Type: text/plain; charset="Windows-1252" MIME-Version: 1.0 X-UI-Loop: V01:MCq2bJfV1wQ=:jw3eyG4GoVUCBd1XfxbLw5t0RgCBvJW/pIUAH1q5nLE= Envelope-To: FDSFJDSJKLF@urbandb.com
Subject: Re: [rt.cpan.org #78042] Domainkey-Signature with Perl 5.14.2
Date: Wed, 27 Jun 2012 13:54:26 -0400
To: bug-MIME-tools [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
On Wed, 27 Jun 2012 13:47:17 -0400 "Rod Taylor via RT" <bug-MIME-tools@rt.cpan.org> wrote: Show quoted text
> The full message was included in the initial report. Headers are > repeated below as extracted from that message. It complains about > 'DomainKey-Signature' for reasons I cannot guess.
Indeed. But this is a MailTools issue, not MIME-tools. I have moved it into the MailTools queue. However, rt.cpan.net won't let me add mark@overmeer.net to the ticket, so perhaps you could drop him a line? Regards, David.
RT-Send-CC: dfs [...] roaringpenguin.com
MailTools simply checks whether the field-name matches this: our $FIELD_NAME = '[^\x00-\x1f\x7f-\xff :]+:'; defined $ctag && $ctag =~ /^($FIELD_NAME|From )/oi or croak "Bad RFC822 field name '$tag'\n"; It is a sloppy way to select printable ASCII bytes. It does not restrict the list of names. There must have been a weird character in your field-name. The message you attach says "DomainKey", the error message says "Domainkey", so the attached message is not the one producing the error. If you can provide me with the original message, I can investigate this further. Please zip it before sending, otherwise all kinds of processes mutulate the bytes. MarkOv
Requestor stopped responding