From dafe900d229a38cadcfe1209be1ecd69ac7a063a Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 26 Jul 2020 23:53:56 +0300 Subject: [PATCH] empty_server: use configured inbox instead of hardcoded "INBOX" --- src/job.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/job.rs b/src/job.rs index d73292e95..87382f286 100644 --- a/src/job.rs +++ b/src/job.rs @@ -633,7 +633,9 @@ impl Job { } } if self.foreign_id & DC_EMPTY_INBOX > 0 { - imap.empty_folder(context, "INBOX").await; + if let Some(inbox_folder) = &context.get_config(Config::ConfiguredInboxFolder).await { + imap.empty_folder(context, &inbox_folder).await; + } } Status::Finished(Ok(())) }