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

New Post: No Message Found

$
0
0
Hi Jacob_P,

the search query is wrong, and a better approach here would be using the Folder.Search method instead of MessageCollection.Download. Here is the corrected version of your code:
Dim imapSvr As New ImapClient("imap.gmail.com", True)
imapSvr.Behavior.AutoPopulateFolderMessages = True

Dim msgs As ImapX.Message()
If imapSvr.Connect() Then
   If imapSvr.Login(username, password) Then
      msgs = imapSvr.Folders.Inbox.Search("FROM \"example@mail.com\"")
   End if
End if

Viewing all articles
Browse latest Browse all 1952

Trending Articles



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