Closed lstrojil closed 4 years ago
Ok, my bad, of course I found the answer as soon as I posted the question. :-)
Assigning the object directly to ParentFolderIds of the Request does the trick:
$request->ParentFolderIds = FindSubFolders($client,'Iamalive');;
Hi,
I would like to get a list of emails from a specific subfolder of a mailbox.
Currently, I am using the following code to open the Inbox:
I know that I can do a DEEP traversal and find emails in subfolders, but I cannot do that. I can search for the ID of the folder by using the folder search calls, but I do not know how I use that generated object to pass it to the request.
How do I pass the discovered folder to the request that lists all messages?