first milestone:
We are sucessfully receiving push mails and sending notifications upon receiving emails. Next step: Enable Online configuration
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user