From 6c5eaaed2c5831ed91959e620448f8c1feb34127 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Mon, 19 Oct 2020 15:58:55 +0200 Subject: [PATCH] Don't peek-receipients/fetch-existing if this is a bot --- src/job.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/job.rs b/src/job.rs index 590d97ae3..8ed787a87 100644 --- a/src/job.rs +++ b/src/job.rs @@ -627,6 +627,9 @@ impl Job { /// Then, Fetch the last messages DC_FETCH_EXISTING_MSGS_COUNT emails from the server /// and show them in the chat list. async fn fetch_existing_msgs(&mut self, context: &Context, imap: &mut Imap) -> Status { + if context.get_config_bool(Config::Bot).await { + return Status::Finished(Ok(())); // Bots don't want those messages + } if let Err(err) = imap.connect_configured(context).await { warn!(context, "could not connect: {:?}", err); return Status::RetryLater;