I'm currently looking to try and retrieve a Boolean value for subfolders inside the inbox. What I'm trying to do is have the program we have look at the date of the email and, if a folder does not exist for that date, create one and if it does exist then it will skip over the line of code that creates the folder.
Below is an attempt at trying to find out whether the folder exists but unfortunately it returns an error where value type 'Folderinfo' cannot be converted to 'Boolean'
Dim all As List(Of FolderInfo) = client.GetFolders()
Dim exists As Boolean = all.Find(
Function(test) test.CanSelect = "INBOX/Test folder")