Path: blob/master/Gmail/Gmail_Update_email_flag.ipynb
2973 views
Gmail - Update email flag
Tags: #gmail #productivity #naas_drivers #operations #snippet #dataframe
Author: Florent Ravenel
Last update: 2023-05-12 (Created: 2023-05-12)
Description: This notebook allows you to update an email flag in your Gmail inbox.
Input
Import librairy
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.box
: This variable stores the name or identifier of the mailbox or folder within the email account that will be accessed.uid
: Unique email ID to be updated. You can it by reading your mailbox.flag
: possible value for flag: 'SEEN', 'ANSWERED', 'FLAGGED', 'DELETED', 'DRAFT', 'RECENT'