Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 41566
Status: resolved
Priority: 0/
Queue: Mail-IMAPTalk

People
Owner: Nobody in particular
Requestors: apm [...] one.com
Cc:
AdminCc:

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



Subject: list/lsub return scalar string when empty result
Date: Tue, 09 Dec 2008 17:48:13 +0100
To: bug-Mail-IMAPTalk [...] rt.cpan.org
From: Peter Mogensen <apm [...] one.com>
When a LIST or an LSUB request has no matches the server (courier) only returns "TAG OK LIST completed", which result in "LIST completed" returned from Mail::IMAPTalk::list when you would expect [] (ref to empty ARRAY). The problem seems to be in _parse_response where $DataResp is never initialized in the big RepeatSwitch so $Res1 is returned instead which only contains the rest of the line in the OK response. /Peter
Well I finally released a newer version (2.01) that has lots of changes, including this being fixed, so ->list() now returns [] for an empty OK response, but undef for a NO/BAD response.