Reading emails directly in DeepSeek Harness (DSH) consumes tokens and leaves traces in the conversation. dsh-email-board displays unread emails by directly invoking dsh-email’s IMAP connection pool, avoiding calls to the large language model.
What Is It¶
This is the dsh-email-board plugin, maintained by Feizhaiqianqian under the MIT license. Its core purpose is to aggregate unread emails from each dsh-email account into card lists and display them in the “Email Board” tab on the right sidebar of the Web interface.
Core Features¶
- Read-only mode: The plugin does not mark emails as read, does not delete emails, and does not initiate send requests.
- No token consumption: Data is fetched directly from the
email_listimplementation ofdsh-email(EmailPool.list(..., unreadOnly: true)); refreshes bypass the model and leave no trace. - Manual refresh: No polling by default after page load; a manual click on the refresh button is required.
- Caching mechanism: A
cacheMsshort-circuit cache exists on the host side to prevent frequent IMAP clicks from overwhelming connections.
Installation¶
Before installing, make sure dsh-email is enabled and accounts are configured; the board plugin will read these settings.
- Clone this repository to your local machine.
- Open the “Plugins” page in DSH.
- Paste the absolute path of this directory into the installation box.
- The installer will run
pnpm add <path>and append the plugin to the profile’sdsh.profile.bundles. - Restart DSH.
Configuration¶
In the profile’s cordis.patch.yml, override the plugin’s default configuration via id: email-board:
- id: email-board
name: dsh-email-board
config:
accounts: [] # Empty array means read all accounts configured in dsh-email
folder: "" # Empty string means read each account's inboxFolder
perAccountLimit: 20 # Maximum number of unread envelopes to display per account (1-100)
cacheMs: 20000 # Host-side result cache duration (milliseconds)
timeoutMs: 25000 # Per-account IMAP timeout (milliseconds)
Usage¶
- Open the right sidebar (click the expand button at the top-right of the conversation header or use a keyboard shortcut).
- Click the “Email Board” pill on the start page.
- Once in the tab, the list displays unread email cards for each account (including sender, subject, and time).
- Click the “Refresh” button at the top-right to re-fetch data.
Notes¶
- Only counts specified folders: Currently, only each account’s
inboxFolder(or the single folder specified byfolder) is counted; all folders are not traversed. - Limit on quantity: When the unread count for a single account exceeds
perAccountLimit, only the most recent emails are shown, with the limit noted. - No scheduled polling: The plugin currently has no scheduled auto-refresh feature.
- Development limitations: The
file:installation method is a snapshot; source code changes require a DSH restart to take effect. For development, using thelink:method is recommended. - Privacy & security: Unread email titles and senders are private data. The read-only route includes a same-origin check (
Sec-Fetch-Siteverification) to prevent arbitrary web pages from maliciously reading them.
Summary¶
dsh-email-board addresses the need for DSH users to quickly view unread emails across multiple accounts without consuming tokens. It relies on dsh-email’s existing implementation and provides a lightweight board view via the Web interface, making it suitable for scenarios where you need to quickly confirm email status during development.