Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sorting messages in a Folder in JavaMail

 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

As the javax.mail.Folder class doesnt have a sort method, the option to sort messages in any folder using Javamail is by using the Comparator.

Is there any other workaround code for achieving the same?

Rgds,

Seetesh
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one?

Without using Collection.sort or using Comparator

Rgds,

Seetesh
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have fetched all messages in an arraylist and then sorted the same using comparator.

Any other way of sorting an Inbox folder directly.

Rgds,

Seetesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic