pin pimalaya core lib versions

This commit is contained in:
Clément DOUIN
2024-10-28 11:29:15 +01:00
parent 0101f7bf34
commit 151adf09e6
25 changed files with 74 additions and 59 deletions
+7 -9
View File
@@ -38,17 +38,15 @@ impl AccountCheckUpCommand {
let account = self.account.name.as_ref().map(String::as_str);
printer.log("Checking configuration integrity…")?;
printer.log("Checking configuration integrity…\n")?;
let (toml_account_config, account_config) = config.clone().into_account_configs(account)?;
let account_config = Arc::new(account_config);
printer.log("Checking backend context integrity…")?;
match toml_account_config.backend {
#[cfg(feature = "maildir")]
Some(Backend::Maildir(mdir_config)) => {
printer.log("Checking Maildir integrity…")?;
printer.log("Checking Maildir integrity…\n")?;
let ctx = MaildirContextBuilder::new(account_config.clone(), Arc::new(mdir_config));
BackendBuilder::new(account_config.clone(), ctx)
@@ -57,7 +55,7 @@ impl AccountCheckUpCommand {
}
#[cfg(feature = "imap")]
Some(Backend::Imap(imap_config)) => {
printer.log("Checking IMAP integrity…")?;
printer.log("Checking IMAP integrity…\n")?;
let ctx = ImapContextBuilder::new(account_config.clone(), Arc::new(imap_config))
.with_pool_size(1);
@@ -67,7 +65,7 @@ impl AccountCheckUpCommand {
}
#[cfg(feature = "notmuch")]
Some(Backend::Notmuch(notmuch_config)) => {
printer.log("Checking Notmuch integrity…")?;
printer.log("Checking Notmuch integrity…\n")?;
let ctx =
NotmuchContextBuilder::new(account_config.clone(), Arc::new(notmuch_config));
@@ -86,7 +84,7 @@ impl AccountCheckUpCommand {
match sending_backend {
#[cfg(feature = "smtp")]
Some(SendingBackend::Smtp(smtp_config)) => {
printer.log("Checking Smtp integrity…")?;
printer.log("Checking SMTP integrity…\n")?;
let ctx = SmtpContextBuilder::new(account_config.clone(), Arc::new(smtp_config));
BackendBuilder::new(account_config.clone(), ctx)
@@ -95,7 +93,7 @@ impl AccountCheckUpCommand {
}
#[cfg(feature = "sendmail")]
Some(SendingBackend::Sendmail(sendmail_config)) => {
printer.log("Checking Sendmail integrity…")?;
printer.log("Checking Sendmail integrity…\n")?;
let ctx =
SendmailContextBuilder::new(account_config.clone(), Arc::new(sendmail_config));
@@ -106,6 +104,6 @@ impl AccountCheckUpCommand {
_ => (),
}
printer.out("Checkup successfully completed!")
printer.out("Checkup successfully completed!\n")
}
}
+1 -1
View File
@@ -117,7 +117,7 @@ impl AccountConfigureCommand {
}
printer.out(format!(
"Account {account} successfully {}configured!",
"Account {account} successfully {}configured!\n",
if self.reset { "re" } else { "" }
))
}
+1
View File
@@ -57,6 +57,7 @@ impl ThreadEnvelopesCommand {
.with_thread_envelopes(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -51,6 +51,7 @@ impl FlagAddCommand {
.with_add_flags(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
@@ -51,6 +51,7 @@ impl FlagRemoveCommand {
.with_remove_flags(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -51,6 +51,7 @@ impl FlagSetCommand {
.with_set_flags(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
@@ -52,6 +52,7 @@ impl AttachmentDownloadCommand {
.with_get_messages(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -53,6 +53,7 @@ impl MessageCopyCommand {
.with_copy_messages(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -52,6 +52,7 @@ impl MessageDeleteCommand {
.with_delete_messages(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -63,6 +63,7 @@ impl MessageForwardCommand {
.with_send_message(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -56,6 +56,7 @@ impl MessageMailtoCommand {
.with_send_message(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -54,6 +54,7 @@ impl MessageMoveCommand {
.with_move_messages(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -99,6 +99,7 @@ impl MessageReadCommand {
.with_get_messages(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -50,6 +50,7 @@ impl MessageSaveCommand {
.with_add_message(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -101,6 +101,7 @@ impl MessageThreadCommand {
.with_thread_envelopes(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
@@ -61,6 +61,7 @@ impl TemplateForwardCommand {
.with_get_messages(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
@@ -66,6 +66,7 @@ impl TemplateReplyCommand {
.with_get_messages(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
@@ -56,6 +56,7 @@ impl TemplateSaveCommand {
.with_add_message(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -45,6 +45,7 @@ impl AddFolderCommand {
.with_add_folder(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -52,6 +52,7 @@ impl FolderDeleteCommand {
.with_delete_folder(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -45,6 +45,7 @@ impl FolderExpungeCommand {
.with_expunge_folder(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -50,6 +50,7 @@ impl FolderListCommand {
.with_list_folders(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;
+1
View File
@@ -52,6 +52,7 @@ impl FolderPurgeCommand {
.with_purge_folder(BackendFeatureSource::Context)
},
)
.without_sending_backend()
.build()
.await?;