I use Mail.dll for mail operations. I get mail folder by following code for all email servers like Gmail, Yahoo, AOL etc
var serverFolders = imapSetting.GetFolders(); //get Inbox, Sent, Draft, Trash, Bulk Mail.. But no Spam
I get all the folders in case of Gmail, Outlook or other server. When I try to get folders for Yahoo, it doesn't return me Spam Folder and details of it.
How can I get Spam mail folder in case of Yahoo?
Please suggest appropriate way.