{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Shared mailbox — IMAP read",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Mail poll",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {}
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "read",
      "type": "input.imap-read",
      "label": "Read support@",
      "category": "io",
      "config": {
        "credentialId": "",
        "host": "127.0.0.1",
        "port": 3993,
        "secure": true,
        "user": "customer@example.test",
        "password": "customer@example.test",
        "mailbox": "INBOX",
        "search": "all",
        "limit": 5,
        "markSeen": false,
        "onlyNew": false,
        "bodyMode": "text",
        "timeoutMs": 10000,
        "rejectUnauthorized": false
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Mailbox feed",
      "category": "utility",
      "config": {
        "message": "inbox: {{ $json }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "read",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "read",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "Poll the support@ mailbox and pull the latest messages into the flow. Pre-wired for the local GreenMail server — run the Send Email demo (Output folder) first so there's mail to read."
  }
}