private void SynchronizeMailCount(int newCount) { Interlocked.Exchange(ref _nbMails, newCount); CheckForNewMail.DoDelayable(); }
private void ImapInboxIdlerOnUidValidityChanged(object sender, EventArgs e) { _config.Tracer?.TraceWarning($"The UidValidity of the mailbox has changed, dropping local cached data", $"{this}"); LastHandledUid = 0; CheckForNewMail.DoDelayable(); }