This project is read-only.

Nested Folder Structure and Access Mail From those Nested Folder.

Topics: Archive, Help requests
Jun 26, 2015 at 12:21 PM
Edited Jun 26, 2015 at 12:37 PM
Hi pavel_azanov I have folder structure like for my gmail account.

---All Mail
Personal (i have created this folder )
Placement Cell (this is also my defined folder)

Successfully i can list down the folders. But how to download the mails from these nested structures.
i tried for these
var messageCollection2 = client.Folders["Sent Mail"].Search("ALL", MessageFetchMode.Full);
var messageCollection2 = client.Folders["Gmail/Sent Mail"].Search("ALL", MessageFetchMode.Full);

but its not working.

my question is can we access the mail from any particular folder by supplying its complete path.
for example can i use path like "Professional/Symantec"

Waiting for your response.
Jun 26, 2015 at 4:05 PM
I think what you want to do is use the Find() method:

var messageCollection2 = client.Folders.Find ("[Gmail]/Sent Mail").Search("ALL", MessageFetchMode.Full);
Jun 29, 2015 at 9:51 AM
Thanku so much jstedfast ,working fine !!