Hi Team,
I am using the following code for getting the messages from Imap
ImapClient imapclient = null;
int startindex=0;
imapclient.selectFolder(myfolder);
ImapPageInfo coll = imapclient.listMessagesByPage(100,startindex);
Now, In this folder there are total 9 messages , now when I use the following code
startindex++;
coll = imapclient.listMessagesByPage(100,startindex);
It gives me 1(one) record, I check the same even my startindex is 1 , 2 or anything
System.out.println("SIZE:- " + coll.getItems().getIList().size());
Please provide me the solution of getting messages from particular folder using Imap
Thanks and Regards,
Ajay Kumar