From 08abf31fa9791b61f1e6c02076882aeaccb7a6d2 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Wed, 23 Apr 2025 11:02:29 -0700 Subject: [PATCH] server: always remove unprocessed label when processing rules --- server/src/nm.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/nm.rs b/server/src/nm.rs index e763f61..a76a4a1 100644 --- a/server/src/nm.rs +++ b/server/src/nm.rs @@ -1037,11 +1037,6 @@ pub async fn label_unprocessed( .or_insert_with(|| Vec::new()) .push(id.clone()); } - let t = "unprocessed".to_string(); - rm_mutations - .entry(t) - .or_insert_with(|| Vec::new()) - .push(id.clone()); //nm.tag_remove("inbox", &id)?; let t = "inbox".to_string(); rm_mutations @@ -1049,6 +1044,11 @@ pub async fn label_unprocessed( .or_insert_with(|| Vec::new()) .push(id.clone()); } + let t = "unprocessed".to_string(); + rm_mutations + .entry(t) + .or_insert_with(|| Vec::new()) + .push(id.clone()); } info!("Adding {} distinct labels", add_mutations.len()); for (tag, ids) in add_mutations.iter() {