Remove is:unread from query to catch read emails
This commit is contained in:
parent
055c1df7a2
commit
553184b8e0
|
|
@ -82,7 +82,7 @@ async function getUnreadEmails(account) {
|
|||
const gmail = google.gmail({ version: 'v1', auth: account.client });
|
||||
const res = await gmail.users.messages.list({
|
||||
userId: 'me',
|
||||
q: 'is:unread -label:AGENT_READ',
|
||||
q: '-label:AGENT_READ newer_than:2d',
|
||||
maxResults: 10
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue