Skip Menu |

This queue is for tickets about the Mail-IMAPClient CPAN distribution.

Report information
The Basics
Id: 41196
Status: resolved
Priority: 0/
Queue: Mail-IMAPClient

People
Owner: Nobody in particular
Requestors: sar [...] mitre.org
Cc:
AdminCc:

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



Subject: swapped arguments in message_to_file?
Date: Mon, 24 Nov 2008 16:37:16 -0500
To: "bug-Mail-IMAPClient [...] rt.cpan.org" <bug-Mail-IMAPClient [...] rt.cpan.org>
From: "Renner, Scott A." <sar [...] mitre.org>
These lines are in the message_to_file subroutine my $peek = $self->Peek ? '.PEEK' : ''; my $cmd = $self->imap4rev1 ? "RFC822$peek" : "BODY$peek\[]"; my $uid = $self->Uid ? "UID " : ""; I think the $cmd arguments are flipped around. They don't match the similar construct in message_string. And my Exchange 2007 server pukes; it doesn't like RFC822.PEEK. When I swap the arguments around, like this my $peek = $self->Peek ? '.PEEK' : ''; my $cmd = $self->imap4rev1 ? "BODY$peek\[]" : "RFC822$peek"; my $uid = $self->Uid ? "UID " : ""; then everything works OK. cheers, -- scott
Subject: Re: [rt.cpan.org #41196] swapped arguments in message_to_file?
Date: Tue, 25 Nov 2008 08:22:42 +0100
To: "Renner, Scott A. via RT" <bug-Mail-IMAPClient [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Renner, Scott A. via RT (bug-Mail-IMAPClient@rt.cpan.org) [081124 21:38]: Show quoted text
> Mon Nov 24 16:37:58 2008: Request 41196 was acted upon. > Transaction: Ticket created by sar@mitre.org > Queue: Mail-IMAPClient > Subject: swapped arguments in message_to_file? > > These lines are in the message_to_file subroutine > > my $peek = $self->Peek ? '.PEEK' : ''; > my $cmd = $self->imap4rev1 ? "RFC822$peek" : "BODY$peek\[]"; > my $uid = $self->Uid ? "UID " : ""; > > I think the $cmd arguments are flipped around.
This problem got fixed in 3.08, released in June. Yesterday, I released 3.12, so I suggest you upgrade. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
no answer, so hopefully the upgrade helped.