nojb / ocaml-imap

Lwt-compatible IMAP4rev1 client library for OCaml
https://nojb.github.io/ocaml-imap/imap
Other
40 stars 17 forks source link

Use longest match when parsing a `sequence-set' #6

Closed ALPHA-60 closed 10 years ago

ALPHA-60 commented 10 years ago

For example, "15:16" sequence set was parsed as "15", and response_data parser would succeed on "* VANISHED 15\r\n", but would fail on a valid "* VANISHED 15:16\r\n" response.

nojb commented 10 years ago

Thanks a lot!