Skip to content

feat(vika): enable email connector on Windows preview - #7221

Merged
ZaynJarvis merged 1 commit into
feat/vikafrom
vika-windows-email
Nov 8, 2026
Merged

ZaynJarvis merged 1 commit into
feat/vikafrom
vika-windows-email

Conversation

@ZaynJarvis

Copy link
Copy Markdown
Collaborator

Why

Email was disabled on win32 in the Windows preview (#7218) only because the email account-file permission check (mode & 0o077 must be 0) always fails on Windows, where lstat reports 0o666 regardless of ACLs. The email code itself is Windows-safe (archives go to viking:// URIs, attachment names are sanitized).

What changed

  • capabilities.mjs: email connector enabled on all platforms (the setup wizard filters on this capability, so email now appears on Windows).
  • config.mjs: removed the email-specific Windows rejection; privateRegularFile only checks mode bits when the existing platform key supportsFileModes is true (posix true, win32 false). No new process.platform use outside platform/. Reusing the existing key, so interfaceKeys is unchanged.
  • docs/windows.md: email no longer listed as disabled; note that the account file mode is not checked on Windows, keep it in a private user-owned directory.
  • Tests: win32 capabilities now expect email; added assertions that posix enforces 0600 and that the non-enforcing path accepts the file.

Tests

cd vika && npm ci && npm test on Linux: 1292 tests, 1284 pass, 0 fail (8 skipped).

Not yet verified on a real Windows machine.

🤖 Generated with Claude Code

Email was only disabled on win32 because the account-file 0600 check
cannot pass there (lstat reports 0666). Skip the mode check when the
platform has no file modes (supportsFileModes) and enable email in
the win32 capabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ZaynJarvis
ZaynJarvis merged commit 36d7c8d into feat/vika Nov 8, 2026
2 checks passed
@ZaynJarvis
ZaynJarvis deleted the vika-windows-email branch November 8, 2026 05:48
@github-project-automation github-project-automation Bot moved this from Backlog to Done in OpenViking project Nov 8, 2026
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.

1 participant