fix(Gmail Trigger Node): Filter sent emails from trigger results (#17691)

This commit is contained in:
Ria Scholz
2025-07-29 09:37:05 +02:00
committed by GitHub
parent 43f267535d
commit 4bab296075
2 changed files with 113 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ export class GmailTrigger implements INodeType {
name: 'gmailTrigger',
icon: 'file:gmail.svg',
group: ['trigger'],
version: [1, 1.1, 1.2],
version: [1, 1.1, 1.2, 1.3],
description:
'Fetches emails from Gmail and starts the workflow on specified polling intervals.',
subtitle: '={{"Gmail Trigger"}}',
@@ -327,6 +327,10 @@ export class GmailTrigger implements INodeType {
}
}
if (node.typeVersion > 1.2 && fullMessage.labelIds?.includes('SENT')) {
continue;
}
if (!simple) {
const dataPropertyNameDownload =
options.dataPropertyAttachmentsPrefixName || 'attachment_';