{
  "couchDb": {
    "url": "http://localhost:5984",
    "user": "admin",
    "password": "password"
  },
  "mailSources": [
    {
      "name": "All Folders Example",
      "enabled": true,
      "protocol": "imap",
      "host": "localhost",
      "port": 3143,
      "user": "testuser1",
      "password": "password123",
      "mode": "archive",
      "folderFilter": {
        "include": ["*"],
        "exclude": ["Drafts", "Trash", "Spam"]
      },
      "messageFilter": {}
    },
    {
      "name": "Inbox and Sent Only",
      "enabled": false,
      "protocol": "imap",
      "host": "localhost",
      "port": 3143,
      "user": "testuser2",
      "password": "password456",
      "mode": "sync",
      "folderFilter": {
        "include": ["INBOX", "Sent"],
        "exclude": []
      },
      "messageFilter": {}
    },
    {
      "name": "Work Folders Pattern",
      "enabled": false,
      "protocol": "imap",
      "host": "localhost",
      "port": 3143,
      "user": "workuser",
      "password": "workpass",
      "mode": "archive",
      "folderFilter": {
        "include": ["Work*", "Projects*", "INBOX"],
        "exclude": ["*Temp*", "*Draft*"]
      },
      "messageFilter": {
        "senderKeywords": ["@company.com"]
      }
    },
    {
      "name": "Archive Pattern Example",
      "enabled": false,
      "protocol": "imap",
      "host": "localhost",
      "port": 3143,
      "user": "archiveuser",
      "password": "archivepass",
      "mode": "archive",
      "folderFilter": {
        "include": ["Archive*", "*Important*", "INBOX"],
        "exclude": ["*Temp"]
      },
      "messageFilter": {}
    }
  ]
}