int pagedIndex = 0;
for (int msgIndex = start; msgIndex < start + pageSize; msgIndex++) {
pagedMessages[pagedIndex++] = msgs[msgIndex];
}
FetchProfile completeProfile = MessageUtils.createFetchProfile( true, null );
currentFolder.fetch( pagedMessages, completeProfile );
Preferences preferences = SessionManager.get().getPreferences();
GWTMessageRecord[] messageStringArray = ConvertUtil.convertMessagesToStringArray(
getApplicationContext(), preferences, (IMAPFolder) currentFolder.getFolder(), pageSize,