♻️ refactor(core): rename initialise_message_list to initialise_lists

- rename initialise_message_list to initialise_lists for clarity
- update all references to the function with the new name
- the function now initialises both message and label lists
This commit is contained in:
Jeremiah Russell
2025-10-28 16:42:30 +00:00
committed by Jeremiah Russell
parent ed0d7e6bf3
commit bf65721cec
2 changed files with 9 additions and 5 deletions

View File

@@ -497,7 +497,7 @@ async fn run_rules(client: &mut GmailClient, rules: Rules, execute: bool) -> Res
};
log::info!("Executing rule `#{}` for label `{label}`", rule.describe());
client.initialise_message_list();
client.initialise_lists();
client.set_rule(rule.clone());
client.set_execute(execute);
if let Err(e) = client.find_rule_and_messages_for_label(&label).await {