- message list paging with an anchor message doesn't work - an error is returned instead:
{
"message" : "Not an ARRAY reference at \/home\/jmap\/jmap-perl\/JMAP\/API.pm line 637.\n",
"type" : "serverError"
}
Perl is like a foreign language to me, otherwise I'd fix these myself!
Which version are you using?
commit 2739c635adb204104aaea140c4bdf2223b0275b8
Date: Thu May 26 23:55:27 2016 -0400
API: handle anchor correctly
diff --git a/JMAP/API.pm b/JMAP/API.pm
index 52f5725..89c1749 100644
--- a/JMAP/API.pm
+++ b/JMAP/API.pm
@@ -638,7 +638,7 @@ sub getMessageList {
if ($args->{anchor}) {
# need to calculate the position
for (0..$#$data) {
- next unless $data->[$_][0] eq $args->{anchor};
+ next unless $data->[$_]{msgid} eq $args->{anchor};
$start = $_ + $args->{anchorOffset};
$start = 0 if $start < 0;
goto gotit;
...
Looks like I fixed this nearly a month ago.