mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-22 11:00:19 +00:00
fix maildir expansion (#307)
* Applied shellexpand to maildir_dir * change to account_config: applied shellexpand to maildir_dir * rustfmt: removing required version, formatted project * changing type of `maildir_dir` to `String` and adding shellexpand to `maildir_dir`
This commit is contained in:
parent
b146d9b7e1
commit
d5a494a01d
3 changed files with 2 additions and 3 deletions
|
@ -61,7 +61,6 @@ use_field_init_shorthand = false
|
|||
force_explicit_abi = true
|
||||
condense_wildcard_suffixes = false
|
||||
color = "Auto"
|
||||
required_version = "1.4.37"
|
||||
unstable_features = false
|
||||
disable_all_formatting = false
|
||||
skip_children = false
|
||||
|
|
|
@ -191,7 +191,7 @@ impl<'a> AccountConfig {
|
|||
}),
|
||||
DeserializedAccountConfig::Maildir(config) => {
|
||||
BackendConfig::Maildir(MaildirBackendConfig {
|
||||
maildir_dir: config.maildir_dir.clone(),
|
||||
maildir_dir: shellexpand::full(&config.maildir_dir)?.to_string().into(),
|
||||
})
|
||||
}
|
||||
};
|
||||
|
|
|
@ -121,4 +121,4 @@ make_account_config!(
|
|||
imap_passwd_cmd: String
|
||||
);
|
||||
|
||||
make_account_config!(DeserializedMaildirAccountConfig, maildir_dir: PathBuf);
|
||||
make_account_config!(DeserializedMaildirAccountConfig, maildir_dir: String);
|
||||
|
|
Loading…
Reference in a new issue