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 <manos@pitsidianak.is>
pull/440/head
Manos Pitsidianakis 3 months ago
parent 073aef8671
commit 86f9b213bf
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -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(())
}
}

Loading…
Cancel
Save