mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix(Gmail Trigger Node): Filter sent emails from trigger results (#17691)
This commit is contained in:
@@ -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_';
|
||||
|
||||
Reference in New Issue
Block a user