On Wed, Jun 22, 2016, at 15:31, Gabriel Hauber wrote: > A couple of things I've come across and worked around as I test > my client… > > - the event source is sending invalid delimiters - instead of \n\n it > is sending \r\n\r\n According to the spec, we are correct: https://html.spec.whatwg.org/multipage/comms.html#the-eventsource-interface end-of-line = ( cr lf / cr / lf ) What library are you using which has a problem with that? Because they're wrong. > - 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 Author: Bron Gondwana <[email protected]> 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. Cheers, Bron. -- Bron Gondwana [email protected]
-- You received this message because you are subscribed to the Google Groups "JMAP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jmap-discuss/1466574119.2910271.644874097.73EE1A35%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout.
