aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-01-25 16:28:40 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-01-25 16:28:40 +0100
commit6dca7b58231c8ad3d5808c442ae93f2ba5b44908 (patch)
treeb5ff12ee02544410cf405bafa9ca5a1138cd3585 /src
parent00d682f9cbbf0bcb7630bbe2b994ef8cc58f0e52 (diff)
Fix incorrect env variable for hosts
Diffstat (limited to 'src')
-rw-r--r--src/configuration.rs4
-rw-r--r--src/main.rs2
2 files changed, 3 insertions, 3 deletions
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