Exemple #1
0
 private void SynchronizeMailCount(int newCount)
 {
     Interlocked.Exchange(ref _nbMails, newCount);
     CheckForNewMail.DoDelayable();
 }
Exemple #2
0
 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();
 }