]> git.r.bdr.sh - rbdr/olden-mail/commitdiff
Fix incorrect env variable for hosts
authorRuben Beltran del Rio <redacted>
Sat, 25 Jan 2025 15:28:40 +0000 (16:28 +0100)
committerRuben Beltran del Rio <redacted>
Sat, 25 Jan 2025 15:28:40 +0000 (16:28 +0100)
README.md
src/configuration.rs
src/main.rs

index 9e6e407cc6330daed90fecbdb67b20a640d80f54..fa87603d6065845c2bd468eaffeed13031894567 100644 (file)
--- a/README.md
+++ b/README.md
@@ -56,7 +56,7 @@ This means the minimum invocation is this (Shown here with inline
 environment variables)
 
 ```
 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
 ```
 
 ## Debugging
index bd0a17f1d19aeb839809478023632d1543d7f4fa..15216a82d79d88f16fcef7c8233cd2a73a63b7bc 100644 (file)
@@ -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()))?,
             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_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",
             }),
                 remote_port: get_env_number("REMOTE_SMTP_PORT", 993)?,
                 protocol: "SMTP",
             }),
index 87ae7382922a14e5ddc1e5e7a0fb6ef35d1d066c..930f7e56fb1cbe05f274943101022ab4f6658667 100644 (file)
@@ -56,7 +56,7 @@
 //! environment variables)
 //!
 //! ```
 //! 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
 //! ```
 //!
 //! ## Debugging