Bulk Email Processing

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
You can use this method to save all data from emails to table abd operate with it. Otherwise i dont see any reason to use it if you're looking for 1 link
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
There's 1 x link per email (or 2 are the same). It's that nothing is picked up from the body, apart from the email 'header'.

I'd like to work with the data, but unfortunately there's nothing to work with.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
Them maybe you should save html tuple.Item3
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Thanks, will try that.

I'm not sure, but I think the email is using Base64 encoding as there are a couple of: == at the end of the data.
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 769
Благодарностей
1 179
Баллы
113
grab all of them if you like :-)

C#:
    // tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
      List<string> tmp = new List<string>();
       tmp.Add(tuple.Item1);
       tmp.Add(tuple.Item2);
       tmp.Add(tuple.Item3);
       tmp.Add(tuple.Item4);
       project.Tables["Tabl1"].AddRow(tmp);
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Now that's what I'm talking about! I'll use this 'catch all' range in future projects.

Congrats on becoming a mod, btw. I hope they pay you enough? :bu:
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 769
Благодарностей
1 179
Баллы
113

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I increased 100 to 200, but keep getting: 924d8d6e-e96b-4b89-98e3-df06b588ae77 (maximum size quota message). There are only 130 emails in the inbox.

Note: I'm also using get all tuple:


Код:
    // tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
      List<string> tmp = new List<string>();
       tmp.Add(tuple.Item1);
       tmp.Add(tuple.Item2);
       tmp.Add(tuple.Item3);
       tmp.Add(tuple.Item4);
       project.Tables["Tabl1"].AddRow(tmp);
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
*Bump*

Projects are coming to a halt as no emails can be verified. I'm using several catch all domains forwarded to one email address.

Update: Ok, it only works when there is exactly 100 emails in the inbox. I've set the parameter to 5000 max.
 
Последнее редактирование:

Drew

Client
Регистрация
29.07.2012
Сообщения
70
Благодарностей
14
Баллы
8
Anyone having issues with gmail not deleting using POP?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
For reference, here's the settings for Outlook:

Incoming IMAP

  • Server: imap-mail.outlook.com
  • Server port: 993
  • Encryption: SSL
Outgoing SMTP

  • Server: smtp-mail.outlook.com
  • Server port: 587
  • Encryption: TLS

Note: I never use SSL for IMAP.
 
  • Спасибо
Реакции: bigcajones

Bruno plant

Новичок
Регистрация
23.06.2015
Сообщения
10
Благодарностей
2
Баллы
3
Hello,

Thanks for zenno team work,

I use this method for a project and all mails are received properly but i also want to download attachements , is it possible with this method or another without using a webmail ?

Thx
 

kalne

Client
Регистрация
28.02.2016
Сообщения
63
Благодарностей
3
Баллы
8
Hello.
Can I add just "tuple.Item4" to the list, not to the table?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
Try)
 

kalne

Client
Регистрация
28.02.2016
Сообщения
63
Благодарностей
3
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
project.Lists["Tabl1"].Add(tuple.Item4);
 
  • Спасибо
Реакции: kalne

kalne

Client
Регистрация
28.02.2016
Сообщения
63
Благодарностей
3
Баллы
8

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
is there a way to just get NEW messages, and then clear the table after parse?
i just want to grab NEW inbox items from email folder (unread tag?)
then clear the table when I'm done using the data for those emails? or maybe even clear the table and move the email (via email id) to a different folder (like:Task Done)?
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 189
Благодарностей
5 830
Баллы
113
is there a way to just get NEW messages, and then clear the table after parse?
i just want to grab NEW inbox items from email folder (unread tag?)
then clear the table when I'm done using the data for those emails? or maybe even clear the table and move the email (via email id) to a different folder (like:Task Done)?
I think, I answered you in the ticket.
 
  • Спасибо
Реакции: Marcelo

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