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