aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 5afcabd..074c192 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -16,6 +16,7 @@ pub struct Config {
pub login_ldap: Option<LoginLdapConfig>,
pub lmtp: Option<LmtpConfig>,
+ pub imap: Option<ImapConfig>,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
@@ -71,6 +72,11 @@ pub struct LmtpConfig {
pub hostname: String,
}
+#[derive(Serialize, Deserialize, Debug, Clone)]
+pub struct ImapConfig {
+ pub bind_addr: SocketAddr,
+}
+
pub fn read_config(config_file: PathBuf) -> Result<Config> {
let mut file = std::fs::OpenOptions::new()
.read(true)