java mail 1.4.4 snapshot SORTING issue

  4 posts   Feedicon  
Replies: 3 - Last Post: October 21, 2010 03:27
by: shannon
showing 1 - 4 of 4
 
Posted: October 19, 2010 09:12 by Rajiv
Hi,
I am trying to connect to gmail through imap protocol and retrieve messages through the java mail 1.4.4 API.But when I tried to sort the messages using the getSortedMessages(sortType,searchTerm) method i get an exception saying "Caused by: com.sun.mail.iap.BadCommandException: SORT not supported". Could anyone explain me the reason for this as i have setup the imap configs in my program according to gmail settings.
 
Posted: October 20, 2010 04:55 by shannon
It means Gmail doesn't support the SORT extension. It's an optional extension, not all IMAP servers support it.
 
Posted: October 20, 2010 10:17 by Rajiv
Thanx shannon. Is their any possibility that gmail imap will support sorting at least after JavaMail 1.4.4 ?
 
Posted: October 21, 2010 03:27 by shannon
Maybe I wasn't clear. The problem isn't in JavaMail. The problem is in Gmail.
You'll need to ask Google when they'll support the SORT extension.
Replies: 3 - Last Post: October 21, 2010 03:27
by: shannon
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close