Browse Source

altered logging behaviour, disabled reload button

drop_old_mail
Stephan Richter 3 years ago
parent
commit
655d285946
  1. 2
      pom.xml
  2. 2
      src/main/java/de/srsoftware/widerhall/data/MailingList.java
  3. 6
      src/main/java/de/srsoftware/widerhall/mail/ImapClient.java
  4. 2
      static/templates/navigation.st

2
pom.xml

@ -6,7 +6,7 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>Widerhall</artifactId> <artifactId>Widerhall</artifactId>
<version>0.2.11</version> <version>0.2.12</version>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

2
src/main/java/de/srsoftware/widerhall/data/MailingList.java

@ -320,7 +320,7 @@ public class MailingList implements MessageHandler {
@Override @Override
public void onMessageReceived(Message message) throws MessagingException { public void onMessageReceived(Message message) throws MessagingException {
LOG.debug("Message received: {}",message.getFrom()); LOG.info("Message received: {}",message.getFrom());
String subject = message.getSubject(); String subject = message.getSubject();
if (subject.toLowerCase().contains("undelivered")){ if (subject.toLowerCase().contains("undelivered")){
try { try {

6
src/main/java/de/srsoftware/widerhall/mail/ImapClient.java

@ -179,10 +179,10 @@ public class ImapClient {
public ImapClient start() { public ImapClient start() {
stop(); stop();
LOG.debug("Creating ListeningThread…"); LOG.info("Creating ListeningThread for {}…",username);
(listeningThread = new ListeningThread()).start(); (listeningThread = new ListeningThread()).start();
LOG.debug("Creating Heartbeat…"); LOG.info("Creating Heartbeat for {}…",username);
(heartbeat = new Heartbeat()).start(); (heartbeat = new Heartbeat()).start();
return this; return this;
@ -190,7 +190,7 @@ public class ImapClient {
public ImapClient stop(){ public ImapClient stop(){
if (listeningThread != null) { if (listeningThread != null) {
LOG.debug("Stopping old ListeningThread…"); LOG.info("Stopping old ListeningThread for {}…",username);
listeningThread.dropListeners().doStop(); listeningThread.dropListeners().doStop();
listeningThread = null; listeningThread = null;
} }

2
static/templates/navigation.st

@ -1,5 +1,5 @@
<nav> <nav>
<a href="index">Home</a> <a href="index">Home</a>
<a href="admin">Administration</a> <a href="admin">Administration</a>
<a class="button" href="reload" />Reload templates</a> <!-- a class="button" href="reload" />Reload templates</a -->
</nav> </nav>
Loading…
Cancel
Save