Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add thread mode #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add thread mode #66

wants to merge 1 commit into from

Conversation

rasa
Copy link
Contributor

@rasa rasa commented Apr 19, 2022

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 rasa force-pushed the rasa/add-threads branch from 1c75395 to f899249 Compare April 19, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant