server: Add a message ID to sent emails

Fixes #608
This commit is contained in:
Valentin Tolmer
2023-08-02 14:24:40 +02:00
committed by nitnelave
parent f0bbcfd2c8
commit d0cdfa97c7
6 changed files with 48 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
use clap::{builder::EnumValueParser, Parser};
use lettre::message::Mailbox;
use serde::{Deserialize, Serialize};
use url::Url;
/// lldap is a lightweight LDAP server
#[derive(Debug, Parser, Clone)]
@@ -82,7 +83,7 @@ pub struct RunOpts {
/// URL of the server, for password reset links.
#[clap(long, env = "LLDAP_HTTP_URL")]
pub http_url: Option<String>,
pub http_url: Option<Url>,
/// Database connection URL
#[clap(short, long, env = "LLDAP_DATABASE_URL")]