Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt regarding javamail API classes (Folder and Store)  RSS feed

 
ashok ganesan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all ,
I m using javamail api to access mails from gmail . I m using IMAP Protocol .This is the piece of code how i will open my inbox from my program



My doubt is once if we execute folder.open will all my mails in particular folder will be available in my folder Object . That is if i call folder.getMessages() will it once again hit the gmail imap server and fetch me the mails ?? or is the mail is already fetched and stored in folder object ... so folder.getMessages() is nothing but accessing some information stored in a java object ???


I think i made my doubt clearer


Thanks in Advance

------------------

Ashok
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!