Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: ImapX Delete email message

$
0
0
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)
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.

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>