From 86f9b213bf1c987744419908727cc9d1f6d57888 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sat, 13 Jul 2024 22:11:30 +0300 Subject: [PATCH] melib/jmap: add `timeout` conf field in validate() `timeout` while valid was not checked in the validate() function, so it could not be used: the validation would reject it. Signed-off-by: Manos Pitsidianakis --- melib/src/jmap/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/melib/src/jmap/mod.rs b/melib/src/jmap/mod.rs index b0917ad9..05c73433 100644 --- a/melib/src/jmap/mod.rs +++ b/melib/src/jmap/mod.rs @@ -1300,6 +1300,11 @@ impl JmapType { .or_else(|_| get_conf_val!(s["server_password_command"]))?; get_conf_val!(s["danger_accept_invalid_certs"], false, "true or false")?; + get_conf_val!( + s["timeout"], + 16_u64, + "integers setting an amount of seconds (a value of zero disables the timeout)" + )?; Ok(()) } }