title: how to sort message and paging throught javamail imap
body: <p>I want to get mail messages sort by date and paging.I use javamail imap.Is it has api to do that sort in server not in client?
  I found roundcubemail can do this.
  Any suggestion?thank advanced.</p>