## Documentation Enhancements - Create comprehensive README with installation, configuration, and usage examples - Add simple, advanced, and provider-specific configuration examples - Document all features: incremental sync, wildcard patterns, keyword filtering, attachment support - Include production deployment guidance and troubleshooting section - Add architecture documentation with database structure and document format examples ## Configuration Cleanup - Remove unnecessary `database` field from CouchDB configuration - Add `m2c_` prefix to all CouchDB database names for better namespace isolation - Update GenerateAccountDBName() to consistently prefix databases with `m2c_` - Clean up all configuration examples to remove deprecated database field ## Test Environment Simplification - Simplify test script structure to eliminate confusion and redundancy - Remove redundant populate-test-messages.sh wrapper script - Update run-tests.sh to be comprehensive automated test with cleanup - Maintain clear separation: automated tests vs manual testing environment - Update all test scripts to expect m2c-prefixed database names ## Configuration Examples Added - config-simple.json: Basic single Gmail account setup - config-advanced.json: Multi-account with complex filtering and different providers - config-providers.json: Real-world configurations for Gmail, Outlook, Yahoo, iCloud ## Benefits - Clear documentation for users from beginner to advanced - Namespace isolation prevents database conflicts in shared CouchDB instances - Simplified test workflow eliminates user confusion about which scripts to use - Comprehensive examples cover common email provider configurations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
74 lines
No EOL
1.7 KiB
JSON
74 lines
No EOL
1.7 KiB
JSON
{
|
|
"couchDb": {
|
|
"url": "http://localhost:5984",
|
|
"user": "admin",
|
|
"password": "password"
|
|
},
|
|
"mailSources": [
|
|
{
|
|
"name": "Wildcard All Folders Test",
|
|
"enabled": true,
|
|
"protocol": "imap",
|
|
"host": "localhost",
|
|
"port": 3143,
|
|
"user": "testuser1",
|
|
"password": "password123",
|
|
"mode": "archive",
|
|
"folderFilter": {
|
|
"include": ["*"],
|
|
"exclude": ["Drafts", "Trash"]
|
|
},
|
|
"messageFilter": {
|
|
"subjectKeywords": ["meeting", "important"],
|
|
"senderKeywords": ["@company.com"]
|
|
}
|
|
},
|
|
{
|
|
"name": "Work Pattern Test",
|
|
"enabled": true,
|
|
"protocol": "imap",
|
|
"host": "localhost",
|
|
"port": 3143,
|
|
"user": "syncuser",
|
|
"password": "syncpass",
|
|
"mode": "sync",
|
|
"folderFilter": {
|
|
"include": ["Work*", "Important*", "INBOX"],
|
|
"exclude": ["*Temp*"]
|
|
},
|
|
"messageFilter": {
|
|
"recipientKeywords": ["support@", "team@"]
|
|
}
|
|
},
|
|
{
|
|
"name": "Specific Folders Only",
|
|
"enabled": true,
|
|
"protocol": "imap",
|
|
"host": "localhost",
|
|
"port": 3143,
|
|
"user": "archiveuser",
|
|
"password": "archivepass",
|
|
"mode": "archive",
|
|
"folderFilter": {
|
|
"include": ["INBOX", "Sent", "Personal"],
|
|
"exclude": []
|
|
},
|
|
"messageFilter": {}
|
|
},
|
|
{
|
|
"name": "Subfolder Pattern Test",
|
|
"enabled": false,
|
|
"protocol": "imap",
|
|
"host": "localhost",
|
|
"port": 3143,
|
|
"user": "testuser2",
|
|
"password": "password456",
|
|
"mode": "archive",
|
|
"folderFilter": {
|
|
"include": ["Work/*", "Archive/*"],
|
|
"exclude": ["*/Drafts"]
|
|
},
|
|
"messageFilter": {}
|
|
}
|
|
]
|
|
} |