first milestone:

We are sucessfully receiving push mails and sending notifications upon receiving emails.
Next step:
Enable Online configuration
This commit is contained in:
2022-04-13 16:44:03 +02:00
parent c9019b63f3
commit b2d9a115b9
5 changed files with 28 additions and 14 deletions

View File

@@ -15,10 +15,9 @@ public class Application {
var config = Files.readString(new File("/tmp/config.json").toPath());
JSONObject json = (JSONObject) parser.parse(config);
//String testSender = (String) json.get("sender");
//String testReceiver = (String) json.get("receiver");
// new SmtpClient(json).send(json,testSender,"Stephan Richter",testReceiver,"Test","Dies ist ein Test");
MessageHandler forward = new Forwarder();
new ImapClient(json).addListener(forward).start();
MessageHandler forward = new Forwarder(json);
new ImapClient(json)
.addListener(forward)
.start();
}
}