Doubt regarding javamail API classes (Folder and Store)
posted 8 years ago
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 ???