{
  "couchDb": {
    "url": "http://localhost:5984",
    "user": "admin",
    "password": "password"
  },
  "mailSources": [
    {
      "name": "Gmail Account",
      "enabled": true,
      "protocol": "imap",
      "host": "imap.gmail.com",
      "port": 993,
      "user": "your-email@gmail.com",
      "password": "your-16-character-app-password",
      "mode": "archive",
      "folderFilter": {
        "include": ["*"],
        "exclude": ["[Gmail]/Trash", "[Gmail]/Spam", "[Gmail]/Drafts"]
      },
      "messageFilter": {
        "since": "2024-01-01"
      }
    },
    {
      "name": "Outlook 365",
      "enabled": true,
      "protocol": "imap",
      "host": "outlook.office365.com", 
      "port": 993,
      "user": "you@outlook.com",
      "password": "your-app-password",
      "mode": "sync",
      "folderFilter": {
        "include": ["INBOX", "Sent Items", "Archive"],
        "exclude": ["Deleted Items", "Junk Email"]
      },
      "messageFilter": {
        "since": "2023-06-01"
      }
    },
    {
      "name": "Yahoo Mail",
      "enabled": false,
      "protocol": "imap",
      "host": "imap.mail.yahoo.com",
      "port": 993,
      "user": "your-email@yahoo.com",
      "password": "your-app-password",
      "mode": "archive", 
      "folderFilter": {
        "include": ["INBOX", "Sent"],
        "exclude": ["Trash", "Spam"]
      },
      "messageFilter": {}
    },
    {
      "name": "iCloud Mail",
      "enabled": false,
      "protocol": "imap",
      "host": "imap.mail.me.com",
      "port": 993,
      "user": "your-email@icloud.com",
      "password": "your-app-specific-password",
      "mode": "archive",
      "folderFilter": {
        "include": ["INBOX", "Sent Messages"],
        "exclude": ["Deleted Messages", "Junk"]
      },
      "messageFilter": {}
    },
    {
      "name": "Custom IMAP Server",
      "enabled": false,
      "protocol": "imap", 
      "host": "mail.example.com",
      "port": 993,
      "user": "username@example.com",
      "password": "password",
      "mode": "archive",
      "folderFilter": {
        "include": ["INBOX", "Sent"],
        "exclude": ["Trash"]
      },
      "messageFilter": {
        "since": "2024-01-01"
      }
    }
  ]
}