mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 13:17:55 +08:00
refactor configs to match new nested api from lib
This commit is contained in:
@@ -42,7 +42,7 @@ impl FolderListCommand {
|
||||
printer.print_table(
|
||||
Box::new(folders),
|
||||
PrintTableOpts {
|
||||
format: &account_config.email_reading_format,
|
||||
format: &account_config.get_message_read_format(),
|
||||
max_width: self.table.max_width,
|
||||
},
|
||||
)?;
|
||||
|
||||
@@ -10,6 +10,9 @@ pub struct FolderConfig {
|
||||
pub expunge: Option<FolderExpungeConfig>,
|
||||
pub purge: Option<FolderPurgeConfig>,
|
||||
pub delete: Option<FolderDeleteConfig>,
|
||||
|
||||
#[serde(flatten)]
|
||||
pub remote: email::folder::config::FolderConfig,
|
||||
}
|
||||
|
||||
impl FolderConfig {
|
||||
@@ -60,6 +63,9 @@ impl FolderAddConfig {
|
||||
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
|
||||
pub struct FolderListConfig {
|
||||
pub backend: Option<BackendKind>,
|
||||
|
||||
#[serde(flatten)]
|
||||
pub remote: email::folder::list::config::FolderListConfig,
|
||||
}
|
||||
|
||||
impl FolderListConfig {
|
||||
|
||||
Reference in New Issue
Block a user