This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imaplib | |
# account credentials and other configs | |
# replace with you Gmail username and password | |
username = "replace with your Gmail username" | |
password = "replace with your Gmail password" | |
# Search query to delete | |
# Make sure to leave the single and double quotes | |
# Example >>> gmail_search = '"from:me"' | |
gmail_search = '"replace with your Search Phrase"' |
NewerOlder