Skip to content

Commit

Permalink
Merge pull request #38 from jeremyephron/spam_trash_bugfix
Browse files Browse the repository at this point in the history
used include_spam_trash
  • Loading branch information
jeremyephron authored Apr 24, 2021
2 parents 66e776d + 325829e commit 38d2846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="simplegmail",
version="3.1.5",
version="3.1.6",
url="https://github.com/jeremyephron/simplegmail",
author="Jeremy Ephron",
author_email="[email protected]",
Expand Down
4 changes: 3 additions & 1 deletion simplegmail/gmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ def get_messages(
response = self.service.users().messages().list(
userId=user_id,
q=query,
labelIds=labels_ids
labelIds=labels_ids,
includeSpamTrash=include_spam_trash
).execute()

message_refs = []
Expand All @@ -515,6 +516,7 @@ def get_messages(
userId=user_id,
q=query,
labelIds=labels_ids,
includeSpamTrash=include_spam_trash,
pageToken=page_token
).execute()

Expand Down

0 comments on commit 38d2846

Please sign in to comment.