Limitation in searching emails in IMAP folder

Hi, I have an mailbox provided by "godaddy". I used Javamail API to get emails for my process, I used IMAP protocol for connecting, get all emails (messages) are OK, but when I search in IMAP server, the server only returns maximum 1000 emails. Whether we have a limitation in IMAP server? Could you please help to clarify it? Thanks.


The code looks like:


LocalDate localDate =;
SearchTerm newer = new SentDateTerm(ComparisonTerm.GE,
Message[] messages =;


I also ask a question in: