[ { "id": "b2f6e3681c7c4801", "type": "tab", "label": "IMAP email example", "disabled": true, "info": "Safe example flow for @compeso/node-red-contrib-imap-email. The tab is disabled by default and the IMAP fetch is externally triggered." }, { "id": "348271c99c0cf7ae", "type": "inject", "z": "b2f6e3681c7c4801", "name": "trigger imap email in", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": "1", "topic": "imap.fetch", "payload": "", "payloadType": "date", "x": 160, "y": 120, "wires": [ [ "52c74eb9f1841ec0" ] ] }, { "id": "52c74eb9f1841ec0", "type": "imap-email in", "z": "b2f6e3681c7c4801", "name": "INBOX email in", "account": "2b40b931e3ce3d1a", "mailbox": "INBOX", "batchSize": "50", "frontWindowSize": "500", "maxInflight": "500", "retryAfterMs": "1800000", "scanTimeLimitMs": "10000", "maxUidPerCommand": "500", "deletedSelection": "exclude", "seenSelection": "exclude", "answeredSelection": "ignore", "flaggedSelection": "ignore", "expungeDeletedFront": false, "expungeDeletedFrontLimit": "200", "maxMessageBytes": "0", "downloadChunkSize": "65536", "includeAttachments": false, "emitRaw": false, "diagnostics": "stats", "x": 280, "y": 200, "wires": [ [ "4ccbf2d3a83941b1" ], [ "79f4700514258841" ], [ "7c0a8048075b778b" ] ] }, { "id": "4ccbf2d3a83941b1", "type": "function", "z": "b2f6e3681c7c4801", "name": "DEMO Verarbeitung", "func": "// Hier kommt deine echte Verarbeitung hin.\n// Nur erfolgreiche Nachrichten duerfen weiter zum ACK-Node laufen.\nmsg.processedAt = new Date().toISOString();\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 520, "y": 160, "wires": [ [ "b0edbceee5d5e7f8" ] ] }, { "id": "b0edbceee5d5e7f8", "type": "imap-email ack", "z": "b2f6e3681c7c4801", "name": "ACK mark seen", "account": "2b40b931e3ce3d1a", "actionMode": "flag", "targetMailbox": "", "seenAction": "set", "answeredAction": "ignore", "flaggedAction": "ignore", "flagAdd": "", "flagRemove": "", "batchSize": "100", "flushMs": "500", "maxUidPerCommand": "500", "maxBatchesPerFlush": "20", "diagnostics": "stats", "x": 770, "y": 120, "wires": [ [ "0cc333e23df86373" ], [ "a85897cfd9f1e067" ], [ "f4bc84b5c8ca42a1" ] ] }, { "id": "79f4700514258841", "type": "debug", "z": "b2f6e3681c7c4801", "name": "email errors", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 490, "y": 200, "wires": [] }, { "id": "7c0a8048075b778b", "type": "debug", "z": "b2f6e3681c7c4801", "name": "email stats", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 490, "y": 240, "wires": [] }, { "id": "0cc333e23df86373", "type": "debug", "z": "b2f6e3681c7c4801", "name": "ack ok", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "imapAck", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 950, "y": 80, "wires": [] }, { "id": "a85897cfd9f1e067", "type": "debug", "z": "b2f6e3681c7c4801", "name": "ack error", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 960, "y": 120, "wires": [] }, { "id": "f4bc84b5c8ca42a1", "type": "debug", "z": "b2f6e3681c7c4801", "name": "ack stats", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 960, "y": 160, "wires": [] }, { "id": "2b40b931e3ce3d1a", "type": "imap-email account", "name": "Example IMAP account", "host": "imap.example.test", "port": "993", "secure": true, "tlsRejectUnauthorized": true, "connectionTimeout": "30000", "greetingTimeout": "30000", "socketTimeout": "300000" } ]