aenetmail icon indicating copy to clipboard operation
aenetmail copied to clipboard

IDLE Not working

Open ArmyDude opened this issue 12 years ago • 2 comments

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

ArmyDude avatar Feb 24 '12 20:02 ArmyDude

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.

NadavK avatar Nov 21 '12 15:11 NadavK

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!

graysuit avatar Nov 17 '23 12:11 graysuit