andyedinborough / aenetmail

C# POP/IMAP Mail Client
369 stars 153 forks source link

IDLE Not working #36

Open ArmyDude opened 12 years ago

ArmyDude commented 12 years ago

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

        AENetIMAPClient = New Global.AE.Net.Mail.ImapClient(Host, User, Pass, Global.AE.Net.Mail.ImapClient.AuthMethods.Login, 143, False)

        AddHandler AENetIMAPClient.NewMessage, AddressOf AEIMAPClient_New

Catch ex As Exception MsgBox(ex.Message.ToString(), MsgBoxStyle.Critical, "Start Error") End Try End Sub

NadavK commented 11 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.

graysuit commented 11 months 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.

Helps, even after 10+ years!