Commit Graph

12 Commits

Author SHA1 Message Date
James a4947516ba Add /seen endpoint - mark messages triaged without archiving 2026-02-13 11:21:54 -05:00
James 5084e879ef Filter actioned messages from listing by default, add ?all=true override 2026-02-08 17:28:45 -05:00
James 80bdc5fb6a feat: add SMS connector via ClawdNode Gateway 2026-02-08 06:21:11 -05:00
James d8a99b5bd2 fix: implement source filter for /messages and /messages/new endpoints
The ?source= query parameter was documented but never implemented.
Both endpoints now properly filter by source when specified.
2026-02-07 00:58:19 -05:00
Johan Jongsma e017ee4cdd Add SQLite orchestration tracking for message state
- Track first_seen, last_action, acked_by per message
- Actions: archive, delete, reply, to-docs
- /messages/new now filters by orchestration state
- Persists across restarts (unlike in-memory tracking)
2026-02-02 22:40:30 +00:00
Johan Jongsma 05dae4426e Fix tilde expansion in data_dir config 2026-02-02 22:22:02 +00:00
Johan Jongsma c6c0ccb9bc Message Center: unified API with connector architecture
- Connector interface for pluggable message sources
- Email connector (refactored IMAP code)
- WhatsApp connector (HTTP wrapper for message-bridge)
- Unified message store with cursor tracking
- New API endpoints:
  - GET /messages/new - unseen messages from all sources
  - GET /messages?since=24h - replay window
  - GET /messages/{id} - single message
  - POST /messages/ack - advance cursor
  - POST /messages/{id}/archive
  - POST /messages/{id}/delete
  - POST /messages/{id}/reply
  - POST /messages/{id}/to-docs
- Simplified webhook (just sends {event: 'new'})
- Legacy /accounts/ endpoints preserved for compatibility
2026-02-02 22:18:51 +00:00
Johan Jongsma 1dacfdbaf9 Flatten webhook payload for simpler template access
- Add uid, from, subject at top level of WebhookPayload
- Allows {{body.from}} instead of {{body.message.from}}
- Fixes empty fields in OpenClaw hook templates
- Full message object still available for detailed access
2026-02-02 22:01:17 +00:00
Johan Jongsma 59ddae7540 Add /ingest endpoint - server-side attachment forwarding to DocSys 2026-02-01 21:38:58 +00:00
Johan Jongsma ed28bb8a64 Add attachment download endpoint for DocSys integration 2026-02-01 21:30:50 +00:00
Johan Jongsma 3690c1c199 feat: year filter, auto-create folders on move, fix MIME parser issues
- Increase limit from 200 to 2000 for bulk operations
- Add year query parameter for filtering messages by year
- Disable BodyStructure fetch (causes parser errors on malformed MIME)
- Auto-create destination folder on TRYCREATE error during move
- Better error handling for move operations
2026-02-01 12:26:44 +00:00
Johan Jongsma 1284a4a390 Initial commit 2026-02-01 08:03:59 +00:00