Skip Menu |

This queue is for tickets about the Net-IMAP-Server CPAN distribution.

Report information
The Basics
Id: 44811
Status: resolved
Priority: 0/
Queue: Net-IMAP-Server

People
Owner: Nobody in particular
Requestors: dan [...] moore.cx
Cc:
AdminCc:

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



Subject: Net::IMAP::Server::Message uses methods of Email::Simple::Header which don't exist
Net::IMAP::Server::Message attempts to use the method "header_raw" on objects of type Email::Simple::Header in many places. That method doesn't exist - at least, not anymore in the most recent version. Simply replacing "header_raw" with "header" worked to fix it for me.
Subject: Re: [rt.cpan.org #44811] Net::IMAP::Server::Message uses methods of Email::Simple::Header which don't exist
Date: Mon, 06 Apr 2009 04:07:07 -0400
To: bug-Net-IMAP-Server [...] rt.cpan.org
From: Alex Vandiver <alexmv [...] MIT.EDU>
On Mon, 2009-04-06 at 00:24 -0400, Dan Moore via RT wrote: Show quoted text
> Net::IMAP::Server::Message attempts to use the method "header_raw" on objects of type > Email::Simple::Header in many places. That method doesn't exist - at least, not anymore in the > most recent version. Simply replacing "header_raw" with "header" worked to fix it for me.
The objects are of type Email::MIME, not Email::Simple (at least, they should be), and the header_raw method was added in Email::MIME version 1.862 -- I've bumped the dependency accordingly. Does upgrading to the latest Email::MIME (and reverting your header_raw -> header changes) solve the problem? Alternately, does installing 1.14 (on its way to CPAN as we speak) force an updated Email::MIME, fixing the problem? - Alex -- Networking -- only one letter away from not working
On Mon Apr 06 04:07:39 2009, alexmv@mit.edu wrote: Show quoted text
> On Mon, 2009-04-06 at 00:24 -0400, Dan Moore via RT wrote:
> > Net::IMAP::Server::Message attempts to use the method "header_raw"
> on objects of type
> > Email::Simple::Header in many places. That method doesn't exist -
> at least, not anymore in the
> > most recent version. Simply replacing "header_raw" with "header"
> worked to fix it for me. > > The objects are of type Email::MIME, not Email::Simple (at least, they > should be), and the header_raw method was added in Email::MIME version > 1.862 -- I've bumped the dependency accordingly. Does upgrading to > the > latest Email::MIME (and reverting your header_raw -> header changes) > solve the problem? > Alternately, does installing 1.14 (on its way to CPAN as we speak) > force an updated Email::MIME, fixing the problem?
Thanks for your fast response! I was already running Email::MIME 1.863. I updated, and now I'm getting this error: Can't locate object method "header_raw" via package "Email::MIME" at /opt/local/lib/perl5/site_perl/5.8.9/Net/IMAP/Server/Message.pm line 485. Incidentally, I love your signature/tagline. I just double checked the logs, and that was the same error I was getting before. The documentation for Email::MIME 1.863 shows that there's no header_raw: http://search.cpan.org/~rjbs/Email-MIME-1.863/lib/Email/MIME.pm Nor in 1.862: http://search.cpan.org/~rjbs/Email-MIME-1.862/lib/Email/MIME.pm Thanks! BTW, I love your signature/tagline.
Subject: Re: [rt.cpan.org #44811] Net::IMAP::Server::Message uses methods of Email::Simple::Header which don't exist
Date: Mon, 06 Apr 2009 13:01:36 -0400
To: bug-Net-IMAP-Server [...] rt.cpan.org
From: Alex Vandiver <alexmv [...] MIT.EDU>
On Mon, 2009-04-06 at 08:37 -0400, Dan Moore via RT wrote: Show quoted text
> The documentation for Email::MIME 1.863 shows that there's no header_raw:
Ah, I see the problem now; the header_raw method is on Email::MIME::Header, but not Email::MIME (unlike the header method, which is delegated from the latter to the former). 1.15 should fix this up, by effectively calling $mime->header_obj->header_raw. Thanks for the report! - Alex -- Networking -- only one letter away from not working