Each space gets {space}-agent@rspace.online as a real Mailcow mailbox (auto-provisioned with generated password). Inbound emails are IMAP-polled and processed by MI (Gemini Flash) for auto-reply. All outbound emails (approvals, notifications) set reply-to to the agent address so replies route back through MI. - mailcow.ts: createMailbox/deleteMailbox/mailboxExists API - schema.sql + db.ts: agent_mailboxes table for per-space IMAP creds - space-alias-service.ts: provisionAgentMailbox/deprovisionAgentMailbox - server.ts: internal routes for agent mailbox CRUD + member-emails - rinbox/mod.ts: initAgentMailbox, per-space IMAP sync, processAgentMI - rinbox/agent-notify.ts: sendSpaceNotification (BCC members) - rcal/rtasks/rvote: notification hooks on create Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| encryptid | ||
| lib | ||