Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1987

Imaplib [search, move, delete] Yahoo Mail

$
0
0
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 time

####### IMAP SSL #######
start = time.time()
try:
    imap_ssl = imaplib.IMAP4_SSL(host="imap.mail.yahoo.com", port=993)
except Exception...
Imaplib [search, move, delete] Yahoo Mail

Viewing all articles
Browse latest Browse all 1987

Trending Articles