From: Ruben Beltran del Rio Date: Sat, 25 Jan 2025 15:28:40 +0000 (+0100) Subject: Fix incorrect env variable for hosts X-Git-Tag: 1.0.0~1 X-Git-Url: https://git.r.bdr.sh/rbdr/olden-mail/commitdiff_plain/6dca7b58231c8ad3d5808c442ae93f2ba5b44908?ds=sidebyside;hp=00d682f9cbbf0bcb7630bbe2b994ef8cc58f0e52 Fix incorrect env variable for hosts --- diff --git a/README.md b/README.md index 9e6e407..fa87603 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ This means the minimum invocation is this (Shown here with inline environment variables) ``` -% REMOTE_IMAP_DOMAIN=imap.coolmailsite.example REMOTE_SMTP_DOMAIN=smtp.coolmailsite.example olden-mail +% REMOTE_IMAP_HOST=imap.coolmailsite.example REMOTE_SMTP_HOST=smtp.coolmailsite.example olden-mail ``` ## Debugging diff --git a/src/configuration.rs b/src/configuration.rs index bd0a17f..15216a8 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -40,14 +40,14 @@ impl Configuration { imap_configuration: Arc::new(Proxy { local_port: get_env_number("LOCAL_IMAP_PORT", 143)?, bind_address: get_env_var("LOCAL_IMAP_BIND_ADDRESS", Some("0.0.0.0".to_string()))?, - remote_host: get_env_var("REMOTE_IMAP_DOMAIN", None)?, + remote_host: get_env_var("REMOTE_IMAP_HOST", None)?, remote_port: get_env_number("REMOTE_IMAP_PORT", 993)?, protocol: "IMAP", }), smtp_configuration: Arc::new(Proxy { local_port: get_env_number("LOCAL_SMTP_PORT", 25)?, bind_address: get_env_var("LOCAL_SMTP_BIND_ADDRESS", Some("0.0.0.0".to_string()))?, - remote_host: get_env_var("REMOTE_SMTP_DOMAIN", None)?, + remote_host: get_env_var("REMOTE_SMTP_HOST", None)?, remote_port: get_env_number("REMOTE_SMTP_PORT", 993)?, protocol: "SMTP", }), diff --git a/src/main.rs b/src/main.rs index 87ae738..930f7e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,7 @@ //! environment variables) //! //! ``` -//! % REMOTE_IMAP_DOMAIN=imap.coolmailsite.example REMOTE_SMTP_DOMAIN=smtp.coolmailsite.example olden-mail +//! % REMOTE_IMAP_HOST=imap.coolmailsite.example REMOTE_SMTP_HOST=smtp.coolmailsite.example olden-mail //! ``` //! //! ## Debugging