User Profile

Collapse

Profile Sidebar

Collapse
Linh Lee
Linh Lee
Last Activity: Aug 28 '22, 06:03 PM
Joined: Aug 19 '22
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Linh Lee
    started a topic imap_ssl.search one letter name

    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@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
    ...
    See more | Go to post

  • Linh Lee
    replied to Yahoo imaplib errors
    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...
    See more | Go to post

    Leave a comment:


  • Linh Lee
    started a topic Yahoo imaplib errors

    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()
    ...
    See more | Go to post

  • Linh Lee
    started a topic Imaplib [search, move, delete] Yahoo Mail

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...