mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
empty_server: use configured inbox instead of hardcoded "INBOX"
This commit is contained in:
@@ -633,7 +633,9 @@ impl Job {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if self.foreign_id & DC_EMPTY_INBOX > 0 {
|
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(()))
|
Status::Finished(Ok(()))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user