From b1fc7f713ac527756e9cde21af84e6ab46de54b5 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Tue, 14 Oct 2025 07:27:04 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(rule=5Fprocessor):=20fix=20l?= =?UTF-8?q?abel=20creation=20and=20message=20retrieval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix label creation by removing async - fix message retrieval by renaming run to get_messages --- src/rule_processor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rule_processor.rs b/src/rule_processor.rs index 00131ae..83aa746 100644 --- a/src/rule_processor.rs +++ b/src/rule_processor.rs @@ -54,7 +54,7 @@ impl RuleProcessor for GmailClient { /// Find the rule and messages for the label async fn find_rule_and_messages_for_label(&mut self, label: &str) -> Result<()> { - self.add_labels(&[label.to_string()]).await?; + self.add_labels(&[label.to_string()])?; if self.label_ids().is_empty() { return Err(Error::LabelNotFoundInMailbox(label.to_string())); @@ -141,7 +141,7 @@ impl RuleProcessor for GmailClient { // } /// Prepare the message list for delete to be completed on execute by batch_delete async fn prepare(&mut self, pages: u32) -> Result<()> { - self.run(pages).await + self.get_messages(pages).await } /// Run the batch delete on the selected messages