Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: No Message Found

$
0
0
Hi,

It appears I'm not able to access the messages in my inbox from vb.net.

When I run this:
Dim msgCount As Integer
msgCount = client.Folders.Inbox.Messages.Count
The project seems to process for a short time as if it's counting messages, but msgCount is returned as 0 every time I run it.

Here's what I have so far:
Public Function getMsg() 

   Dim client As New ImapClient("imap.gmail.com", True)
   Dim msg As ImapX.Message
   Dim msgCount As Integer

   If imapSvr.Connect() Then
      If imapSvr.Login(username, password) Then
         msgcount = client.Folders.Inbox.Messages.Count
      End If
   End If
End Function
Connecting and logging in seem to function correctly. The messages are the only thing I'm having issue with.

I'm running .NET framework v 4.5 with the 4.5 version of imapx.dll v 2.0.0.15

Any suggestions on what I could be doing wrong?

Thanks!

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>