summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ba654c0..29f3e08 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -71,6 +71,8 @@ struct Config {
mail_from: Mailbox,
mail_host: Option<String>,
mail_port: Option<u16>,
+ #[serde(default)]
+ mail_starttls: bool,
#[serde(default)]
invite_only: bool,
@@ -250,6 +252,7 @@ pub async fn build(
config.mail_from.clone(),
config.mail_host.as_deref().unwrap_or("localhost"),
config.mail_port.unwrap_or(25),
+ config.mail_starttls,
config.location.clone(),
)
.context("setting up mail notifications")?,