go through the login process again to obtain new token json file reading mail from gmail account gmail organizes emails that are replies to each other into conversation threads when you log in to gmail in your web browser or through an appyou're really looking at email threads rather than individual emails (even if the thread has only one email in itezgmail has gmailthread and gmailmessage objects to represent conversation threads and individual emailsrespectively gmailthread object has messages attribute that holds list of gmailmessage objects the unread(function returns list of gmailthread objects for all unread emailswhich can then be passed to ezgmail summary(to print summary of the conversation threads in that listimport ezgmail unreadthreads ezgmail unread(list of gmailthread objects ezgmail summary(unreadthreadsaljon do you want to watch robocop this weekenddec jon thanks for stopping me from buying bitcoin dec the summary(function is handy for displaying quick summary of the email threadsbut to access specific messages (and parts of messages)you'll want to examine the messages attribute of the gmailthread object the messages attribute contains list of the gmailmessage objects that make up the threadand these have subjectbodytimestampsenderand recipient attributes that describe the emaillen(unreadthreads str(unreadthreads[ ]"len(unreadthreads[ messages str(unreadthreads[ messages[ ]"to='jon doe timestamp=datetime datetime( subject='robocopsnippet='do you want to watch robocop this weekend?'>unreadthreads[ messages[ subject 'robocopunreadthreads[ messages[ body 'do you want to watch robocop this weekend?\ \nunreadthreads[ messages[ timestamp datetime datetime( unreadthreads[ messages[ sender 'al sweigart unreadthreads[ messages[ recipient 'jon doe