return 0;
}
final MailAccount mailAccount = new MailAccount(cfg);
try {
// If mark messages as seen is set then open mbox read-write.
mailAccount.connect("INBOX", markRecentMailsAsSeen);
final Mail[] mails = mailAccount.getMails(filter);
if (mails != null) {
for (final Mail mail : mails) {
final MebEntryDO entry = new MebEntryDO();
entry.setDate(mail.getDate());