Path: blob/master/Gmail/Gmail_Mark_emails_as_seen_by_dates.ipynb
2973 views
Kernel: Python 3
Gmail - Mark emails as seen by dates
Tags: #gmail #productivity #naas_drivers #operations #snippet #dataframe
Author: Antonio Georgiev
Last update: 2023-07-31 (Created: 2023-07-20)
Description: This notebook goes through the emails within the date range set by the user and marks them all as seen.
Input
Import libraries
In [1]:
Setup Variables
Create an application password following this procedure
username
: This variable stores the username or email address associated with the email accountpassword
: This variable stores the password or authentication token required to access the email accountsmtp_server
: This variable represents the SMTP server address used for sending emails.date
: This variable stores the date that will be used to determine the rangecondition
: This variable stores the condition to get your emails
In [2]:
Model
Connect to email box
In [3]:
Get all messages on conditions
In [4]:
Output
Get emails on condition and mark them as seen
In [5]: