Search found 3 matches

by Linh_Lee
Sun Aug 28, 2022 5:36 pm
Forum: General Discussion
Topic: TypeError: uid is not string ERROR
Replies: 0
Views: 11347

TypeError: uid is not string ERROR

Trying to search/delete for specific user with one letter name, "a", and always changing domains. Some addresses from this spam: a@kragar.imentss.com a@octobertres.com a@cngruel.com Need help please, fixing invalid syntax error. CODE: from imap_tools import MailBox, A with MailBox('imap.ma...
by Linh_Lee
Tue Aug 23, 2022 6:28 am
Forum: General Discussion
Topic: imap_ssl.search one letter name
Replies: 0
Views: 10785

imap_ssl.search one letter name

resp_code, mails = imap_ssl.search(None, '(FROM "a")') I want to search emails from a specific one letter named user, "a". Example: <a@xxxxx.com> <a@xxxxxx.com> Problem is, search results cause all users with an "a" as part of there name to be returned. Example: jane@x...
by Linh_Lee
Sat Aug 20, 2022 1:36 am
Forum: General Discussion
Topic: Assistance debuging imaplib errors
Replies: 0
Views: 11096

Assistance debuging imaplib errors

Want to search folder "SPAM", for specific_user@any domain, and delete found mail. Code below ... import imaplib box = imaplib.IMAP4_SSL('imap.mail.yahoo.com', 993) box.login("xxxxxxxx@yahoo.com","xxxxxxxxxx") box.select('SPAM') typ, data = box.search(None, 'from','name...

Go to advanced search