Remove is:unread from query to catch read emails

This commit is contained in:
Deep Koluguri 2026-06-27 15:19:36 -04:00
parent 055c1df7a2
commit 553184b8e0
1 changed files with 1 additions and 1 deletions

View File

@ -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
});