fetch
public void fetch(Message[] msgs,
FetchProfile fp)
throws MessagingException
-
Prefetch the items specified in the FetchProfile for the given Messages.
Clients use this method to indicate that the specified items are needed en-masse for the given message range. Implementations are expected to retrieve these items for the given message range in a efficient manner. Note that this method is just a hint to the implementation to prefetch the desired items.
An example is a client filling its header-view window with the Subject, From and X-mailer headers for all messages in the folder.
Message[] msgs = folder.getMessages();
FetchProfile fp = new FetchProfile();