Revamped IMAP IDLE code and bugfixes #93
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I downloaded AE.Net.Mail the other day in search of an IMAP lib that would allow my application to receive IMAP IDLE notifications. AE.Net.Mail is awesome but I think the code that deals with IMAP IDLE has some issues with thread synchronization and it will also not always cleanly shutdown.
I spent the last couple of days rewriting parts of it and after trying several different approaches, it is now working rather nicely. I also added a bit of documentation to a couple of methods as well. If anyone feels like reviewing my changes, please do and if you think they are alright, maybe we can get them into the repository.
I also re-worked the ParseMime method as it would get confused when parsing messages with empty content bodies.
Cheers,
smiley22
ps. this also fixes a bug in GetMessages as described in #86