My maven is
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.3</version>
</dependency>
My code is the following
IMAPClient client = new IMAPClient();
client.connect("localhost");
for(50K users){
client.login(login + emailSuffix, password);
for (int i = 0; i < folders.length; i++) {
System.out.println(client.select("INOX"); //prints true, it's ok
}
}
How may I grab messages with apache commons client? All methods return boolean or void, so it's looks like just server checking library am I right? Is it possible to somehow get useful info from imapclient? I mean number of unread messages, Message objects (content+headers+sibject) by some term and so on.
P.S. Java Mail api of course has all functions I need but it very slow for using it in 50K loop (My efforts on Java Mail API described on other SO question. Commons is much more faster in connection but couldn't give useful info(