if(account.hasNotifications() && kernel.withGUI()) {
int msgid = imap.countAllMessages() - 1; // arrays begin at 0
String from = imap.getFromAddress(msgid);
String subject = imap.getMessageSubject(msgid);
String datetime = imap.getMessageDate(msgid);
new Thread(new Notification(account.getAccountName(), from, datetime, subject)).start();
}
}
System.out.println( "\n----------["+ account.getAccountName() +"]----------\n"
+ "| " + NewMessages + " nouveaux\n"