feat: init maildir support with message command

This commit is contained in:
Clément DOUIN
2026-03-16 16:06:15 +01:00
parent 7c4dcfc08a
commit dd43e0e123
22 changed files with 1060 additions and 209 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ use crate::imap::{
/// from the source mailbox to the destination mailbox. Requires the
/// MOVE IMAP extension.
#[derive(Debug, Parser)]
pub struct MoveMessageCommand {
pub struct MoveMessagesCommand {
#[command(flatten)]
pub mailbox_name: MailboxNameOptionalFlag,
#[command(flatten)]
@@ -35,7 +35,7 @@ pub struct MoveMessageCommand {
pub seq: bool,
}
impl MoveMessageCommand {
impl MoveMessagesCommand {
pub fn execute(self, printer: &mut impl Printer, account: ImapAccount) -> Result<()> {
let mut imap = account.new_imap_session()?;
let mailbox = self.mailbox_name.inner.try_into()?;