n8n-nodes-jmap 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -608,7 +608,12 @@ class Jmap {
608
608
  const resource = this.getNodeParameter('resource', 0);
609
609
  const operation = this.getNodeParameter('operation', 0);
610
610
  const accountId = await GenericFunctions_1.getPrimaryAccountId.call(this);
611
- for (let i = 0; i < items.length; i++) {
611
+ // Operations that should only run once, regardless of input items
612
+ const singleExecutionOperations = [
613
+ 'getMany', // Email/Mailbox/Thread getMany - query with filters, not per-item
614
+ ];
615
+ const itemsToProcess = singleExecutionOperations.includes(operation) ? 1 : items.length;
616
+ for (let i = 0; i < itemsToProcess; i++) {
612
617
  try {
613
618
  let responseData = {};
614
619
  // ==================== EMAIL ====================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-jmap",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "n8n community node for JMAP email protocol (RFC 8620/8621) - Works with Apache James, Twake Mail, Fastmail, and other JMAP-compatible servers",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",