docs: add comprehensive keyword filtering specification

- Update CLAUDE.md with keyword filtering in Next Steps section
- Add detailed TODO.md with feature specification, use cases, and implementation notes
- Document subjectKeywords, senderKeywords, and recipientKeywords functionality
- Include JSON configuration examples and priority assessment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ole-Morten Duesund 2025-07-29 17:19:55 +02:00
commit 44efed908d
2 changed files with 55 additions and 4 deletions

View file

@ -110,10 +110,14 @@ To complete the implementation, the following items need to be addressed:
1. **Real IMAP Message Parsing**: Replace placeholder message generation with actual IMAP message fetching and parsing using the correct go-imap/v2 API
2. **Message Body Extraction**: Implement proper text/plain and text/html body extraction from multipart messages
3. **Attachment Handling**: Add support for email attachments (optional)
4. **Error Recovery**: Add retry logic for network failures and partial sync recovery
5. **Performance**: Add batch operations for better CouchDB insertion performance
6. **Testing**: Add unit tests for all major components
3. **Keyword Filtering**: Add support for filtering messages by keywords in:
- Subject line (`subjectKeywords`)
- Sender addresses (`senderKeywords`)
- Recipient addresses (`recipientKeywords`)
4. **Attachment Handling**: Add support for email attachments (optional)
5. **Error Recovery**: Add retry logic for network failures and partial sync recovery
6. **Performance**: Add batch operations for better CouchDB insertion performance
7. **Testing**: Add unit tests for all major components
## Development Guidelines