Skip Menu |

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

Report information
The Basics
Id: 5368
Status: new
Priority: 0/
Queue: IMAP-Admin

People
Owner: Nobody in particular
Requestors: jad [...] stanfordalumni.org
Cc:
AdminCc:

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



Subject: LIST command fails with UW IMAP
Hello, I am using IMAP::Admin.pm v1.6.1. There may be a bug in handling the response received from the server for the LIST command. Specifically it does not handle the case when the untagged response contains the NIL hierarchy delimiter. As a result of that, it prematurely breaks out of the while loop and returns a failure. As per IMAP4Rev1 [RFC 3501] section 7.2.2, the LIST response could return a NIL hierarchy delimiter when no hierarchy exists. I reproduced the problem running against UW IMAP == begin trace == * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] xxxx IMAP4rev1 2001.315rh at Tue, 17 Feb 2004 14:25:32 -0800 (PST) try LIST "" "*" * LIST (\NoSelect) "/" .kde * LIST (\NoSelect) "/" .kde/Autostart * LIST (\NoInferiors \UnMarked) "/" .kde/Autostart/Autorun.desktop * LIST (\NoInferiors \UnMarked) "/" .bash_history * LIST (\NoInferiors) NIL INBOX try OK LIST comple == end trace == The last line "* LIST (\NoInferiors) NIL INBOX" is then assumed to be the tagged response from the server and since it does not match /^try OK/, the module behaves as if the server returned an error. Inefficient Patch: ================== Change Line 606 of Admin.pm From: while ($try =~ /^\* LIST.*?\) \".\" \"*(.*?)\"*$/) { To: while ( ($try =~ /^\* LIST.*?\) \".\" \"*(.*?)\"*$/) || ($try =~ /^\* LIST.*?\) NIL \"*(.*?)\"*$/) )
Date: Wed, 18 Feb 2004 09:56:09 -0600
From: Eric Estabrooks <eric [...] urbanrage.com>
To: bug-IMAP-Admin [...] rt.cpan.org
Subject: Re: [cpan #5368] LIST command fails with UW IMAP
RT-Send-Cc:
Guest via RT wrote: Show quoted text
>This message about IMAP-Admin was sent to you by guest <> via rt.cpan.org > >Full context and any attached attachments can be found at: ><URL: https://rt.cpan.org/Ticket/Display.html?id=5368 > > >Hello, > >I am using IMAP::Admin.pm v1.6.1. > >There may be a bug in handling the response received from the server for the LIST command. Specifically it does not handle the case when the untagged response contains the NIL hierarchy delimiter. As a result of that, it prematurely breaks out of the while loop and returns a failure. > >As per IMAP4Rev1 [RFC 3501] section 7.2.2, the LIST response could return a NIL hierarchy delimiter when no hierarchy exists. > >I reproduced the problem running against UW IMAP >== begin trace == >* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] xxxx IMAP4rev1 2001.315rh at Tue, 17 Feb 2004 14:25:32 -0800 (PST) >try LIST "" "*" >* LIST (\NoSelect) "/" .kde >* LIST (\NoSelect) "/" .kde/Autostart >* LIST (\NoInferiors \UnMarked) "/" .kde/Autostart/Autorun.desktop >* LIST (\NoInferiors \UnMarked) "/" .bash_history >* LIST (\NoInferiors) NIL INBOX >try OK LIST comple >== end trace == > >The last line "* LIST (\NoInferiors) NIL INBOX" is then assumed to be the tagged response from the server and since it does not match /^try OK/, the module behaves as if the server returned an error. > >Inefficient Patch: >================== > >Change Line 606 of Admin.pm >From: > while ($try =~ /^\* LIST.*?\) \".\" \"*(.*?)\"*$/) { > >To: > while ( ($try =~ /^\* LIST.*?\) \".\" \"*(.*?)\"*$/) || > ($try =~ /^\* LIST.*?\) NIL \"*(.*?)\"*$/) ) > > > >
Thanks for the information, I'll fix it in the next release. Eric
Download smime.p7s
application/x-pkcs7-signature 3k

Message body not shown because it is not plain text.