Skip to content

feat(vika): configure email mailbox with compatible identities - #7144

Merged
ZaynJarvis merged 2 commits into
volcengine:feat/vikafrom
openviking-superagent:feat/email-mailbox-identity
Nov 6, 2026
Merged

ZaynJarvis merged 2 commits into
volcengine:feat/vikafrom
openviking-superagent:feat/email-mailbox-identity

Conversation

@openviking-superagent

@openviking-superagent openviking-superagent commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Description

Mailbox rules can deliver messages outside INBOX, but the email connector could only monitor INBOX. Add an optional imap.mailbox account setting, defaulting to INBOX, with a separate persisted cursor and message/archive identity for each folder. Existing INBOX event IDs, reply records and archive paths remain compatible.

Names retain case and spaces (only INBOX is case-insensitive); IMAP4rev1 uses modified UTF-7. Monitoring is read-only and a first visit still starts with new mail, not a historical import.

First of three mailbox-monitoring changes: explicit folder identity, then multi-folder polling, then LIST discovery. Authentication is unchanged; concurrent OAuth PR #7080 touches the same account-loading code and will require integration when merged. No live account credentials used. The follow-up schema fix makes read_email accept both legacy and folder-scoped IDs.

Human Involvement

  • A human participated in the implementation or review loop
  • This PR was generated entirely by AI agents without human participation in the loop

Humans supplied the feature request and three-PR scope. Implementation and code review recorded here were performed by AI agents; no human code-review approval is claimed.

Related Issue

No linked GitHub issue. Related work: #7080. This staged change is #7144 → #7145 → #7148.

Type of Change

  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Test update

Changes Made

The entrypoint is the email account JSON under imap; the owning modules are vika/packages/daemon/src/email/ and the read_email input schema. The README documents configuration and compatibility. This PR contains no unrelated authentication or release changes.

Testing

Revalidated on Linux at head 444f172. From vika/:

node --test packages/daemon/test/email.test.mjs packages/daemon/test/email-identity-schema.test.mjs packages/cli/test/email.test.mjs
npm run check
git diff --check 40a26ec HEAD

Focused tests: 28/28 passed, no failures, cancellations, or skips. Syntax and diff checks passed. The full Vika suite, live IMAP providers, macOS, and Windows were not tested for this change; validation uses a scripted IMAP server and local contract tests. Node emits its existing SQLite experimental warning.

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (focused suites above)
  • I have tested this on Linux
  • macOS
  • Windows

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code (AI review)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published

Additional Notes

The GitHub status-check rollup is empty at this review; local checks are not a green CI result. Before merge, a maintainer must confirm/run the applicable Vika checks and review the stack in order. The repository's Vika workflow matches vika/**; the general PR workflow excludes this directory. Authentication integration with #7080 remains a merge concern.

@ZaynJarvis
ZaynJarvis merged commit a9d8393 into volcengine:feat/vika Nov 6, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Nov 6, 2026
nexw added a commit to nexw/OpenViking that referenced this pull request Nov 9, 2026
The branch had drifted 25 commits behind volcengine/openviking's feat/vika
since volcengine#7012: the OpenViking tool surface work (volcengine#7079), per-instance OV users
and peers (volcengine#7092), timers in OV (volcengine#7016), explicitSilence defaults (volcengine#7110),
image-heavy turns (volcengine#7113), stale implicit turns (volcengine#7021), the email connector
(volcengine#7144/volcengine#7145/volcengine#7148), Feishu chat scoping (volcengine#7149) and the Windows preview
chain (volcengine#7218-volcengine#7245).

Conflicts were all in files the superseded local commit a709961 touched;
resolution takes the upstream side, because volcengine#7079 replaced that design:
OpenViking tools now reach every runtime through the Core ActionService
(ov-tools.mjs), so the durable host keeps registering durableCodingTools()
and no longer wires its own MCP catalogue. The local-only
durable-ov-tools.mjs, its test, the @earendil-works/pi-mcp dependency and
DURABLE_OV are dropped with it; README.md, install.md and
docs/pi-durable-runtime.md take the upstream (English) rewrites.

vika/ is now byte-identical to origin-https/feat/vika; the merge keeps
origin/main already merged in.
@nexw
nexw deleted the feat/email-mailbox-identity branch November 13, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants