Linh Lee
Coder
Trying to search/delete for specific user with one letter name, "a", and always changing domains.
Some addresses from this spam:
Need help please, fixing invalid syntax error.
CODE:
ERROR:
Some addresses from this spam:
Need help please, fixing invalid syntax error.
CODE:
Python:
from imap_tools import MailBox, A
with MailBox('imap.mail.yahoo.com').login('[email protected]', 'PWD', 'Bulk') as mailbox:
DELETE messages that contains 'a@*.*' in body from Bulk folder
mailbox.delete(mailbox.fetch(A(body='a@*.*')))
ERROR:
Code:
λ python DeleteEmailFiles.py
File "C:\Users\Desktop\Desktop\Python Spam Buster\DeleteEmailFiles.py", line 5
DELETE messages that contains 'a@*.*' in body from Bulk folder
^^^^^^^^
SyntaxError: invalid syntax
Last edited: