mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
@@ -255,8 +255,8 @@ impl Context {
|
|||||||
}
|
}
|
||||||
Config::InboxWatch => {
|
Config::InboxWatch => {
|
||||||
if self.get_config(Config::InboxWatch).await.as_deref() != value {
|
if self.get_config(Config::InboxWatch).await.as_deref() != value {
|
||||||
// If Inbox-watch is disabled and then enabled again, we don't want
|
// If Inbox-watch is disabled and enabled again, do not fetch emails from in between.
|
||||||
// emails that arrived in the meantime to be fetched
|
// this avoids unexpected mass-downloads and -deletions (if delete_server_after is set)
|
||||||
if let Some(inbox) = self.get_config(Config::ConfiguredInboxFolder).await {
|
if let Some(inbox) = self.get_config(Config::ConfiguredInboxFolder).await {
|
||||||
crate::imap::set_config_last_seen_uid(self, inbox, 0, 0).await;
|
crate::imap::set_config_last_seen_uid(self, inbox, 0, 0).await;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user