سؤال

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.

هل كانت مفيدة؟

المحلول

It depends on whether or not the server supports the IMAP SORT extension. If it does, you can use the IMAPFolder.getSortedMessages method to get the Message objects sorted appropriately. You can then fetch the data for the messages in whatever groups/pages you like.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top