Feature/search inbox

I think we should include the code from `imap4SortKey` into `imap4SortOrdering` to avoid parsing the JSON request twice.