mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 05:07:55 +08:00
renamed sync feature to account-sync, put wizard stuff under feature
This commit is contained in:
@@ -10,7 +10,7 @@ use email::message::send::sendmail::SendMessageSendmail;
|
||||
use email::message::send::smtp::SendMessageSmtp;
|
||||
use log::info;
|
||||
|
||||
#[cfg(feature = "sync")]
|
||||
#[cfg(feature = "account-sync")]
|
||||
use crate::cache::arg::disable::CacheDisableFlag;
|
||||
#[allow(unused)]
|
||||
use crate::{
|
||||
@@ -44,7 +44,7 @@ pub struct MessageForwardCommand {
|
||||
#[command(flatten)]
|
||||
pub body: MessageRawBodyArg,
|
||||
|
||||
#[cfg(feature = "sync")]
|
||||
#[cfg(feature = "account-sync")]
|
||||
#[command(flatten)]
|
||||
pub cache: CacheDisableFlag,
|
||||
|
||||
@@ -60,7 +60,7 @@ impl MessageForwardCommand {
|
||||
|
||||
let (toml_account_config, account_config) = config.clone().into_account_configs(
|
||||
self.account.name.as_ref().map(String::as_str),
|
||||
#[cfg(feature = "sync")]
|
||||
#[cfg(feature = "account-sync")]
|
||||
self.cache.disable,
|
||||
)?;
|
||||
|
||||
@@ -84,7 +84,7 @@ impl MessageForwardCommand {
|
||||
ctx.maildir.as_ref().and_then(AddMaildirMessage::new)
|
||||
});
|
||||
}
|
||||
#[cfg(feature = "sync")]
|
||||
#[cfg(feature = "account-sync")]
|
||||
Some(BackendKind::MaildirForSync) => {
|
||||
builder.set_add_message(|ctx| {
|
||||
ctx.maildir_for_sync
|
||||
|
||||
Reference in New Issue
Block a user