Hi Pavel, I've this issue: A first chance exception of type 'System.FormatException' occurred in System.dll the code is: I've tried several MessageFetchMode. If I use MessageFetchMode.Size it works, but the code raises the same exception at the m.Download
Here is the complete code: ' connection is ok Dim f As ImapX.Folder = cli.Folders.Inbox f.Messages.Download("UNSEEN", Enums.MessageFetchMode.Tiny) For Each m As ImapX.Message In f.Messages m.Download(Enums.MessageFetchMode.Tiny) Dim mySubject As String = m.Subject.ToString.ToUpper
Debug.Print(m.Subject) Next Then, while iterating, the progams always hangs itself at the m.Download (iteration n. 8, maybe depending on the message content ?) How can I solve this issue ? Thanks Francesco
Here is the complete code: ' connection is ok Dim f As ImapX.Folder = cli.Folders.Inbox f.Messages.Download("UNSEEN", Enums.MessageFetchMode.Tiny) For Each m As ImapX.Message In f.Messages m.Download(Enums.MessageFetchMode.Tiny) Dim mySubject As String = m.Subject.ToString.ToUpper
Debug.Print(m.Subject) Next Then, while iterating, the progams always hangs itself at the m.Download (iteration n. 8, maybe depending on the message content ?) How can I solve this issue ? Thanks Francesco