Open ArmyDude opened 12 years ago
Like you, I have had several issues with Idle/Imap that I was not able to fix: 1) It only fires events for the first few new emails 2) I am not able to reconnect after loosing internet connectivity.
Both these issues are fixed in smiley22's mail project: https://github.com/smiley22/S22.Imap PS: I am not affiliated with S22 in any way, I just want an IMAP solution that works.
Like you, I have had several issues with Idle/Imap that I was not able to fix:
1. It only fires events for the first few new emails 2. I am not able to reconnect after loosing internet connectivity.
Both these issues are fixed in smiley22's mail project: https://github.com/smiley22/S22.Imap PS: I am not affiliated with S22 in any way, I just want an IMAP solution that works.
Helps, even after 10+ years!
I've attempted to use your current cs files and also swapped them out with NadavK 's files without luck. NadavK's files worked very intermittently. Initial connection, I would send 2 or 3 messages to the specific server that the software is looking for and 1 or 2 would actually trigger the NewMessage event. I was also getting errors when trying to Disconnect. Is this an issue that I am only seeing, or am I missing something. Here's my implementation in Vb.Net. I have the C# project referenced with my VB.Net application.. I've also tried this with SSL on port 993. Connects ok either way. Is NadavK's code integrated with the latest ImapClient.cs and other files?
Public WithEvents AENetIMAPClient As Global.AE.Net.Mail.ImapClient Public Host As String = "XXXX" Public User As String = "XXXX" Public Pass As String = "XXX" Public Sub Start() Try
Catch ex As Exception MsgBox(ex.Message.ToString(), MsgBoxStyle.Critical, "Start Error") End Try End Sub