smiley22 / S22.Imap

A free, easy-to-use and well-documented .NET library component for communicating with IMAP servers
http://smiley22.github.com/S22.Imap/Documentation/
MIT License
211 stars 115 forks source link

Intermittent freezing on Search #164

Open danenglish2 opened 3 years ago

danenglish2 commented 3 years ago

I have a .NET core console app that runs 24x7, checking mail every 60 seconds. After a week or two, it eventually freezes at the search call. The app is then completely halted until I close and restart it. The relevant code is below. Any suggestions?

using var client = new ImapClient(server, 993, login, password, AuthMethod.Login, true); IEnumerable uids = client.Search(SearchCondition.Unseen()); // execution stops here intermittently