Mail Client
A simple and efficient IMAP email client directly within your VS Code (or any other compatible editor like Cursor or Antigravity). In Markdown mode, you can leverage AI autocomplete to assist with writing your email text.

Features
- Account Management: Add, edit, and remove IMAP accounts through a user-friendly interface.
- Email Browsing & Search: Access folders from the sidebar, browse messages, and search within folders using IMAP search features.
- Compose Interface: WYSIWYG rich text editor with Markdown fallback mode.
- Basic Operations: Reply to messages, forward, and delete emails.
- Attachments: Support for uploading and downloading email attachments. Added support for local file selection even when connected to Remote SSH.
- Folder Management: Map special folders and create custom folder buttons.
- Image Whitelist: Whitelist trusted senders to automatically load remote images in future emails.
- Organize Messages: Archive, Spam, Trash, and Inbox actions with context-aware buttons.
- Unread Views: Choose All Messages, Unread First, or Unread Only from the message list toolbar. Toggle read/unread state from the list or detail view; row positions remain stable until the next refresh.
- PDF Preview: Open PDF attachments in an editor tab (requires a PDF viewer extension for rendered previews). Temporary copies are private and cleaned up when their preview tabs close or the extension shuts down.
- Address Book: Manage your email contacts and use autocomplete in the
To, Cc, and Bcc fields. Add unknown contacts easily with a single click.
- Jira Integration: Pair emails with Jira issues, post comments, and open issues directly in the browser from the message detail view.
- Notes & Org Integration: Copy a stable link to an email or capture it as a task (org-mode TODO by default) into a configurable file. Links reopen the exact email later via a URI handler — works with org-mode link extensions and across editors (Cursor, VSCodium, …).
- Print Support: Capability to print messages via the native OS prompt directly from the UI.
- Customizable Layout: Choose between Side or Bottom panel for viewing message details in Split View.
- Calendar Support: View calendar invite (ICS) details directly in the email, including time, location, and attendees.
- Connection Reliability: Configurable keepalive mechanism using IMAP
NOOP commands to prevent session timeouts.
Requirements
- VS Code version 1.85.0 or newer.
- Linux, Node.js, and npm for development and packaging.
- IMAP account (e.g., Gmail, Outlook, custom server).
Development on Linux
npm ci
npm run compile
npx --no-install tsc --noEmit
npm run test-unit
Create an installable VSIX package with:
./build_extension.sh
Release tooling (@vscode/vsce and ovsx) is installed by npm ci from the
lockfile. ./release_extension.sh updates the upcoming changelog, bumps the
version and creates a tag, builds a VSIX, pushes commits and tags, then publishes
that VSIX to Open VSX and VS Code Marketplace.
It requires a clean working tree and an OVSX_PAT. Marketplace publishing uses
Microsoft Entra ID through Azure CLI. Install Azure CLI, run
az login --tenant <tenant-id> --allow-no-subscriptions, and grant that identity
Contributor access to the wdtbrchan Marketplace publisher. Install the local
release tools with npm ci before the first release. The script verifies Entra
access before changing the version or pushing commits and publishes with
vsce --azure-credential; legacy VSCE_PAT values are ignored. If necessary,
set AZURE_TENANT_ID in .release.env to select the publishing tenant.
Use --version-type major|minor|patch to select the bump (default: patch),
--use-existing-version to rebuild the current version, or
--skip-changelog-commit to include the changelog in the version commit.
--skip-publish still pushes commits and tags; for a local build only, use
./build_extension.sh.
Website deployment is handled separately by ./deploy_website.sh. Both release
and deployment load local credentials and settings from the git-ignored
.release.env; copy .release.env.example when creating a new configuration.
Account Setup
Open the Mail Client sidebar and click + Add Mail Account. Pick an Account Type and follow the matching guide below. Server addresses are pre-filled for Gmail and Outlook.
Gmail (App Password)
Google no longer allows signing in to IMAP/SMTP with your normal account password, and it does not offer free OAuth2 for third-party mail clients (the https://mail.google.com/ scope is a restricted scope requiring a paid annual security assessment). The supported, free way is an App Password:
- Turn on 2-Step Verification for your Google account: myaccount.google.com/security.
- Create an App Password: myaccount.google.com/apppasswords. Give it a name (e.g.
VS Code Mail Client) and copy the generated 16-character password.
- In the extension, add an account with Account Type → Gmail (App Password):
- Username: your full Gmail address
- Password: the 16-character App Password (not your normal password)
- IMAP
imap.gmail.com:993 (SSL) and SMTP smtp.gmail.com:465 (SSL) are filled in automatically.
- Click Test Connection and Save.
Notes
- App Passwords require 2-Step Verification to be enabled.
- On a Google Workspace (business/school) account, the administrator may have disabled App Passwords. In that case IMAP access must be enabled/authorized by your admin.
- You can revoke the App Password at any time from the same Google page.
Outlook / Microsoft 365 (OAuth2)
Microsoft has removed Basic Authentication (passwords/app passwords) for Outlook and Microsoft 365 mailboxes, so these accounts use OAuth2. This is free and requires no security audit.
- In the extension, add an account with Account Type → Microsoft 365 / Outlook (OAuth2):
- Username: your full email address (e.g.
you@outlook.com or your work address)
- IMAP
outlook.office365.com:993 (SSL) and SMTP smtp.office365.com:587 (STARTTLS) are filled in automatically.
- Click Sign in and complete the Microsoft login/consent in your browser.
- Click Test Connection and Save. No password is stored — the extension keeps a short-lived token and refreshes it automatically.
Notes
- Works with personal accounts (
outlook.com, hotmail.com, live.com) and work/school accounts.
- On some organization tenants an administrator must approve the app before you can consent; this is controlled by your organization, not the extension.
Other IMAP servers
Choose Account Type → IMAP + Password / App Password and enter your server's IMAP/SMTP host, port, username, and password manually.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.