resp_code, mails = imap_ssl.search (None, '(FROM "a")')
I want to search emails from a specific one letter named user, "a".
Example:
<a@ocmd.improvi dentially.com>
<a@akesan.ovoer elaborating.com >
Problem is, search results cause all users with an "a" as part of there name to be returned.
Example:
jane@domain.com
aaron@domain.co m
...
User Profile
Collapse
-
imap_ssl.search one letter name
-
SOLUTION:
Got off the phone with Yahoo Premium Support Engineer.
Yahoo mail has a unique way of generating the "Spam" folder filtering system, thus, folder scan would not display it!
Due to the above mentioned, 3rd party mailbox managers, can't access it by it's name, SO, an identical box called "Bulk" is generated, giving you access to all the contents of the "Spam" folder... -
Yahoo imaplib errors
Want to search folder SPAM, for specific_user@a ny domain, and delete found mail.
Code below ...
...Code: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@*') for num in data[0].split(): box.store(num, '+FLAGS', '\\Deleted') box.expunge() -
Imaplib [search, move, delete] Yahoo Mail
Any python experts willing to share there knowledge, please?!
Want to:
1. Search ALL folders including SPAM, for "specific_user@ ANY (wildcard) domain"
2. Move those emails to folder called DUMP
3. Delete contents of DUMP
Unfortunately I can't figure out how to do what I need above in Yahoo Mail!
My code so far below:
...Code:import imaplib import
No activity results to display
Show More
Leave a comment: