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