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:
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