simplegmail icon indicating copy to clipboard operation
simplegmail copied to clipboard

Add thread mode

Open rasa opened this issue 3 years ago • 0 comments

This works:

#!/usr/bin/env python3

from simplegmail import Gmail

gmail = Gmail()

messages = gmail.get_messages(query='wxyz')
print("Found %d messages" % len(messages)) # returns 3 (only messages found in the search)

gmail.mode = gmail.THREAD_MODE
messages = gmail.get_messages(query='wxyz')
print("Found %d messages" % len(messages)) # returns 14 (all messages in the threads found from the search)

rasa avatar Apr 19 '22 01:04 rasa