This commit is contained in:
rustmailer
2026-04-21 18:15:54 +08:00
parent b29c6ea9ff
commit c185ea102c
35 changed files with 652 additions and 423 deletions
+6 -1
View File
@@ -17,7 +17,9 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
use crate::modules::{
cache::imap::mailbox::MailBox, error::BichonResult, store::tantivy::envelope::ENVELOPE_MANAGER,
cache::imap::mailbox::MailBox,
error::BichonResult,
store::tantivy::{attachment::ATTACHMENT_MANAGER, envelope::ENVELOPE_MANAGER},
};
pub async fn delete_mailbox_impl(account_id: u64, mailbox_id: u64) -> BichonResult<()> {
@@ -45,5 +47,8 @@ pub async fn delete_mailbox_impl(account_id: u64, mailbox_id: u64) -> BichonResu
ENVELOPE_MANAGER
.delete_mailbox_envelopes(account_id, ids_to_delete.clone())
.await?;
ATTACHMENT_MANAGER
.delete_mailbox_attachments(account_id, ids_to_delete.clone())
.await?;
Ok(())
}