Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: vittal.id [...] aithal.org
Cc:
AdminCc:

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



Subject: Mailbox names containing a double quote break returns from the LIST command
In lib/Net/IMAP/Server/Command/List.pm, line 57 is: my $name = q{"}.Encode::encode('IMAP-UTF-7',$node->full_path).q{"}; However, if the full_path contains one or more double quotes, quoting fails and the path is returned truncated. Changing it to: my $name = Encode::encode('IMAP-UTF-7',$node->full_path); $name =~ s/"/\\"/g; $name = q{"}.$name.q{"}; resolves the problem. Cheers Vittal
Subject: Re: [rt.cpan.org #66376] Mailbox names containing a double quote break returns from the LIST command
Date: Fri, 04 Mar 2011 14:46:49 -0500
To: bug-Net-IMAP-Server [...] rt.cpan.org
From: Alex Vandiver <alex [...] chmrr.net>
On Fri, 2011-03-04 at 07:08 -0500, Vittal Aithal via RT wrote: Show quoted text
> However, if the full_path contains one or more double quotes, quoting > fails and the path is returned truncated. > > Changing it to: > > my $name = Encode::encode('IMAP-UTF-7',$node->full_path); > $name =~ s/"/\\"/g; > $name = q{"}.$name.q{"}; > > resolves the problem.
Good catch, though there's a cleaner solution. Does the attached patch resolve the issue for you? - Alex

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

From: vittal.id [...] aithal.org
Show quoted text
> Good catch, though there's a cleaner solution. Does the attached patch > resolve the issue for you?
Hi Alex Thanks for the fast reply. Yes, the patch works for me. Regards Vittal