andyedinborough/aenetmail — Issue #36: IDLE Not working
Author: ArmyDude
Created: 2012-02-24 20:11:51+00:00
State: open

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