Subject: | uidsearch+sort does not return uid's but msgno's |
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