fix missing notmuch backend features, improve docs

This commit is contained in:
Clément DOUIN
2024-01-22 10:39:06 +01:00
parent 8cebdf9e90
commit 4d288b9d51
13 changed files with 103 additions and 34 deletions
+8
View File
@@ -4,6 +4,8 @@ use clap::Parser;
use email::message::add::imap::AddImapMessage;
#[cfg(feature = "maildir")]
use email::message::add::maildir::AddMaildirMessage;
#[cfg(feature = "notmuch")]
use email::message::add::notmuch::AddNotmuchMessage;
#[cfg(feature = "sendmail")]
use email::message::send::sendmail::SendSendmailMessage;
#[cfg(feature = "smtp")]
@@ -84,6 +86,12 @@ impl MessageWriteCommand {
.map(AddMaildirMessage::new_boxed)
});
}
#[cfg(feature = "notmuch")]
Some(BackendKind::Notmuch) => {
builder.set_add_message(|ctx| {
ctx.notmuch.as_ref().map(AddNotmuchMessage::new_boxed)
});
}
_ => (),
};