code: public MessageListResult search(String server, SearchCriteria criteria) throws IOException, MailosaurException {
      	HashMap<String, String> query = new HashMap<String, String>();
      	query.put("server", server);
      	return client.request("POST", "api/messages/search", criteria, query).parseAs(MessageListResult.class);
      }
docs: Search for messages.
  Returns a list of messages matching the specified search criteria. The messages are returned sorted by received date, with the most recently-received messages appearing first.
  
  @param server The identifier of the server hosting the messages.
  @param criteria The search criteria to match results against.
  @throws MailosaurException thrown if the request is rejected by server
  @throws IOException
  @return the MessageListResult object if successful.