ezgmail icon indicating copy to clipboard operation
ezgmail copied to clipboard

No message in any thread

Open sebsebmlx opened this issue 4 years ago • 0 comments

Hello,

Is this module currently working for other users? I get through the login steps and everything seem to work fine.

Using unreadThreads = ezgmail.unread(), I manage to get the list of threads but each of them shows Message = {list:0} [].

When trying to any message i get:

unreadThreads[0].messages[0] Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in unreadThreads[0].messages[0] IndexError: list index out of range

Similar issue with the .summary() function:

ezgmail.summary(unreadThreads) Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in ezgmail.summary(unreadThreads) File "/Users/seb/Library/Python/3.8/lib/python/site-packages/ezgmail/init.py", line 507, in summary summaryText.append((obj.senders(), obj.snippet, obj.latestTimestamp())) # GmailThread and GmailMessage both have senders() and latestTimestamp() methods. File "/Users/seb/Library/Python/3.8/lib/python/site-packages/ezgmail/init.py", line 104, in latestTimestamp return self.messages[-1].timestamp IndexError: list index out of range

Thank you

sebsebmlx avatar Mar 29 '20 06:03 sebsebmlx