BulkMailDownload - Won't delete emails

convict29

Пользователь
Регистрация
10.07.2014
Сообщения
114
Благодарностей
3
Баллы
18
Hey i use BulkMailDownload, this is the code i use:

Код:
Tuple<string, string, string, string>[] allMails;
allMails = ZennoPoster.BulkMailDownload(project.Variables["Email"]. Value,
       project.Variables["EmailPass"]. Value, "imap.gmail.com", 993, true,
       ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol.IMAP,
       24*100, 1000, true);
// loop fo all messages
foreach(Tuple<string, string, string, string> tuple in allMails)
{
    // adding messages to the table called Tabl1
    // tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
       List<string> tmp = new List<string>();
       tmp.Add(tuple.Item4);//body of the text message
       project.Tables["Table1"].AddRow(tmp);
}

I set "ture" to delete emails but wont delete them.

Settings to my gmail :
Auto-Expunge on - Immediately update the server.
Also tried with POP3 Settings and configurew gmail properly but still wont delete the emails.

Is there any way to make this work?
Else how could i force it to download only unread emails?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
delete function depends on email provider. it doesnt work for all of them.
 

convict29

Пользователь
Регистрация
10.07.2014
Сообщения
114
Благодарностей
3
Баллы
18
hmm... well not working with gmail or hotmail. Thanks anyway! :D
Possible to make it download only unread emails?
 

convict29

Пользователь
Регистрация
10.07.2014
Сообщения
114
Благодарностей
3
Баллы
18
I deleted manual all emails. Then i receive new ones and the BulkMailDownload delete function worked :D
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)