🚧 Add options for email sender and receiver
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 10 Nov 2024 20:42:57 +0000 (21:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 10 Nov 2024 20:42:57 +0000 (21:42 +0100)
These will replace the email senders and receivers that are configured
in a chain, essentially removing them from the chain.

src/main/java/net/pterodactylus/rhynodge/engine/Options.java

index 2803a83..3a08a99 100644 (file)
@@ -20,6 +20,12 @@ public class Options {
        @Option(name = "ERROR_EMAIL_RECIPIENT", required = true)
        public final String errorEmailRecipient = null;
 
+       @Option(name = "EMAIL_SENDER", required = true)
+       public final String emailSender = null;
+
+       @Option(name = "EMAIL_RECIPIENT", required = true)
+       public final String emailRecipient = null;
+
        @Option(name = "STATE_DIRECTORY", defaultValue = "states")
        public final String stateDirectory = null;
 
@@ -32,6 +38,8 @@ public class Options {
                                .add("smtpHostname='" + smtpHostname + "'")
                                .add("errorEmailSender='" + errorEmailSender + "'")
                                .add("errorEmailRecipient='" + errorEmailRecipient + "'")
+                               .add("emailSender='" + emailSender + "'")
+                               .add("emailRecipient='" + emailRecipient + "'")
                                .add("stateDirectory='" + stateDirectory + "'")
                                .add("chainDirectory='" + chainDirectory + "'")
                                .toString();