L
L
leham12021-11-05 23:42:10
Python
leham1, 2021-11-05 23:42:10

How to do mail filtering through Python?

Hello.
I use mail.ru mail. The built-in mail filter there is not very flexible. I would like mail to be filtered through Python (for example, so that letters automatically go to SPAM if the text of an incoming letter contains the phrases I specified). Can you please tell me what libraries I can use to do this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
ge, 2021-11-06
@leham1

Why not use an email client and set up filters there? The described task with filtering by text has long been implemented. There are extensions
for Thunderbird that allow you to use regular expressions if you need advanced text analysis. I don’t really understand how you want to filter mail from a provider that does not provide an API for working with mail (all I found was one endpoint for checking the number of letters in the Inbox).

V
Vadim Sabynich, 2015-02-11
@vadim_s_sabinich

You need to add the parameter
VirtualDocumentRoot /var/www/mysite/data/www/mysite.com/%1

3
3vi1_0n3, 2015-02-12
@3vi1_0n3

* is the last line in the DNS zone config? Serial changed when changing DNS zone?

C
Cavin March, 2017-03-01
@ForbsmC

How to create dynamic subdomains?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question