refactor(jmap): improve errors management

This commit is contained in:
Clément DOUIN
2026-03-31 09:13:41 +02:00
parent 2afbc89d3e
commit 9d46dfd0a2
17 changed files with 178 additions and 138 deletions
+1 -3
View File
@@ -72,9 +72,7 @@ fn parse_output<T: DeserializeOwned>(config: &Path, args: &[&str]) -> T {
///
/// Exercises every command in a single ordered flow. Pass a path to a
/// valid TOML config file with a default JMAP account configured.
pub fn run(config: &Path) {
let email = env::var("EMAIL").expect("EMAIL env var");
pub fn run(config: &Path, email: String) {
let ts = SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()