Script to delete emails from specific senders. The script was tested on Python 3.7.9 using the library https://imapclient.readthedocs.io/en/2.2.0/ With the help of my script, you can quickly delete messages on a huge number of emails.
del_emails_from.txt - write the email of the sender from whom you want to delete the letter on your mailboxes
Good.txt - emails on which messages are deleted
imap.list - list of imap settings
DeleteLetters_develpy.py - source code