googleapis / googleapis/google-api-nodejs-client
Query mails after date returns results that before this date
Open
priority: p2
type: bug
- Dominant language
- TypeScript
- Stars
- 12.2k
- Forks
- 2k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 24
Description
#### Environment details
- OS: Ubuntu 22.04.2 LTS / Google Cloud Run / Cloud Run Jobs
- Node.js version: 18.16.1
- npm version: 9.5.1
- `googleapis` version: "@googleapis/gmail": "^3.0.0"
#### Steps to reproduce
1. Create a gmail client for some email in your company with domain wide delegation.
2. List messages with query like `{in:inbox in:outbox} after:1689576392 before:1689605192` (after - some stored datetime, before - calculated range in 8 hours)
3. Returned list contains messages, that have date BEFORE 1689576392.
Contributor guide
Assessment
This issue has not been assessed yet.