Skip Menu |

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

Report information
The Basics
Id: 46245
Status: resolved
Priority: 0/
Queue: Net-IMAP-Client

People
Owner: Nobody in particular
Requestors: icestar [...] inbox.ru
Cc: mihai.bazon [...] gmail.com
AdminCc:

Bug Information
Severity: Important
Broken in: 0.92
Fixed in: 0.9501



Subject: bug in the <search> command
Hello! I found a bug in <search> method. I tried to find all messages on the server with UID in some range. According to RFC 3501 this command should looks like [UID SEARCH UID 443:557]. In your interpretation this command comes out as [NIC15 UID SEARCH CHARSET "UTF-8" (UID "443:557")\r\n] and server response will be [Response: NO Error in IMAP command received by server.] The reason of this error in quotes of UID range. You shouldn't take UID parameter value in quotes. So now I'm obliged to use FETCH command instead, it works properly. And please, complete your documentation to module with examples of using UID ranges. Thanks.
As of v0.9501, $imap->search() avoids quoting UID criteria.