Skip Menu |
 

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

Report information
The Basics
Id: 71563
Status: resolved
Worked: 1 min
Priority: 0/
Queue: Net-IMAP-Simple

People
Owner: Nobody in particular
Requestors: software3 [...] suresupport.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.2024
  • 1.2025
Fixed in: (no value)



Subject: uidsearch+sort does not return uid's but msgno's
Download (untitled) / with headers
text/plain 886b
Hello, I'm attaching the patch - the problem is when using uidsearch() with second parameter (sort options) the logic falls back to 'SORT' command without adding 'UID' in front of it. ------------------------- --- /home/software3/private/misc/Simple.pm 2011-10-06 13:47:01.000000000 +0300 +++ /usr/share/perl5/Net/IMAP/Simple.pm 2011-10-06 13:49:05.000000000 +0300 @@ -525,7 +525,7 @@ # add rfc5256 sort, requires charset :( if ($sort) { $sort = uc $sort; - $cmd = "SORT ($sort) \"$charset\""; + $cmd = ($uidm ? "UID ": "") . "SORT ($sort) \"$charset\""; } my @seq; ------------------------- Package version: 1.2024 (still exists in 1.2025) Perl version: v5.10.1 built for i486-linux-gnu-thread-multi OS: Linux tester2.office.suresupport.com 2.6.32-5-openvz-686 #1 SMP Wed May 18 08:28:21 UTC 2011 i686 GNU/Linux Regards, Jorge
Download (untitled) / with headers
text/plain 201b
Sweet, thanks. The 1.2026 should hit the CPAN today or tomorrow. -- If riding in an airplane is flying, then riding in a boat is swimming. 116 jumps, 48.6 minutes of freefall, 92.9 freefall miles.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.