fix answered flag not set when replying to a message #508

This commit is contained in:
Clément DOUIN
2024-11-29 16:02:12 +01:00
parent 4b731f3cca
commit f9f2aaeab7
2 changed files with 9 additions and 2 deletions
+7 -2
View File
@@ -2,7 +2,7 @@ use std::sync::Arc;
use clap::Parser;
use color_eyre::{eyre::eyre, Result};
use email::{backend::feature::BackendFeatureSource, config::Config};
use email::{backend::feature::BackendFeatureSource, config::Config, flag::Flag};
use pimalaya_tui::{
himalaya::{backend::BackendBuilder, editor},
terminal::{cli::printer::Printer, config::TomlConfig as _},
@@ -82,6 +82,11 @@ impl MessageReplyCommand {
.with_reply_all(self.reply.all)
.build()
.await?;
editor::edit_tpl_with_editor(account_config, printer, &backend, tpl).await
editor::edit_tpl_with_editor(account_config, printer, &backend, tpl).await?;
backend.add_flag(folder, &[id], Flag::Answered).await?;
Ok(())
}
}