This file contains 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 | |
import re | |
import csv | |
def search_emails(email_account, search_terms): | |
"""Searches an email account for emails containing the given search terms. | |
Args: | |
email_account: The email account to search. | |
search_terms: A list of search terms. |