Merge branch 'main' into lang_de

This commit is contained in:
2022-04-23 00:22:04 +02:00
6 changed files with 135 additions and 1 deletions

View File

@@ -94,6 +94,15 @@ public class MailingList implements MessageHandler, ProblemListener {
return setFlag(STATE_PUBLIC_ARCHIVE,enabled);
}
@Override
public void clearProblems() {
try {
setLastError(null);
} catch (SQLException e) {
LOG.warn("setLastError(null) failed.");
}
}
/**
* create a new ML object int the database
* @param email

View File

@@ -65,6 +65,7 @@ public class ImapClient {
while (!stopped){
handleMessages();
problemListener.clearProblems();
LOG.debug("Warte.");
inbox.idle(true);
}

View File

@@ -4,4 +4,6 @@ import javax.mail.MessagingException;
public interface ProblemListener {
public void onImapException(MessagingException e);
public void clearProblems();
}