diff --git a/packages/nodes-base/nodes/EmailReadImap.node.ts b/packages/nodes-base/nodes/EmailReadImap.node.ts index 9c01ff5b53..57d3a3f6f0 100644 --- a/packages/nodes-base/nodes/EmailReadImap.node.ts +++ b/packages/nodes-base/nodes/EmailReadImap.node.ts @@ -81,8 +81,6 @@ export class EmailReadImap implements INodeType { async trigger(this: ITriggerFunctions): Promise { - let isFirstRun = true; - const credentials = this.getCredentials('imap'); if (credentials === undefined) { @@ -235,14 +233,7 @@ export class EmailReadImap implements INodeType { if (returnData.length) { this.emit([returnData]); - } else if (isFirstRun === true && this.getMode() === 'manual') { - // If it is the first run we emit even when it is empty. If we would - // not do that it would wait till the first unread email arrives - // before it would continue to execute the next node. - this.emit([]); } - - isFirstRun = false; }, };