Answer the question
In order to leave comments, you need to log in
How can I make a program using the IMAP library that deletes all incomprehensible (unwanted) letters from my mail.ru mail?
I noticed lately a lot of spam has been coming to the mail (mail.ru), in connection with this I want to write a program that will delete all mailings (either by the name of the message / deleting old letters) to which I am not subscribed. I will write the program in python 3. As far as I understand, to write this program, you need to use imaplib - IMAP4. I ask you to prompt, give advice on how to do this, do I want to use the right library or do I need a different, and possibly a different approach in general. PS I looked at the documentation on imaplib - IMAP4 but I could not understand much ( https://docs.python.org/3/library/imaplib.html ), maybe you can tell me where it is better to look.
PS I plan that the program will have the following functionality:
1. Deleting all letters by the specified email
2. Deleting all messages for a certain period
3. Deleting letters by letter name
Answer the question
In order to leave comments, you need to log in
I think it will be very difficult to do this - since mail.ru does not support mail search !
Mail.ru IMAP: Unsupported search criterion
mail.ru imap mail search
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question