Good day pavel_azanov,
I included the library you gave me, but the problem still persist, I cannot delete a specidif email, a group of emails, or an entire folder, I tried the following commands without success:
1)
I included the library you gave me, but the problem still persist, I cannot delete a specidif email, a group of emails, or an entire folder, I tried the following commands without success:
1)
FolderCollection folders = client.Folders["[Gmail]"].SubFolder;
MessageCollection AllMail = folders[0].Messages;
folders[0].DeleteFolder();
2) FolderCollection folders = client.Folders["[Gmail]"].SubFolder;
MessageCollection AllMail = folders[0].Messages;
folders[0].DeleteMessage(msg);
3) client.Folders["[Gmail]"].DeleteMessage(msg);
4)client.Folders[1].DeleteMessage(msg);
5)
if (client.Folders["[Gmail]"].MoveMessageToFolder(msg, folders[6]))
folders[6].EmptyFolder();
6)
if (client.Folders["[Gmail]"].MoveMessageToFolder(msg, folders[6]))
folders[6].DeleteFolder();
If I'm making a mistake or the syntax is incorrect, please help.