dsh-email-board: DeepSeek Harness Email Board Plugin

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_list implementation of dsh-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 cacheMs short-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.

  1. Clone this repository to your local machine.
  2. Open the “Plugins” page in DSH.
  3. Paste the absolute path of this directory into the installation box.
  4. The installer will run pnpm add <path> and append the plugin to the profile’s dsh.profile.bundles.
  5. 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

  1. Open the right sidebar (click the expand button at the top-right of the conversation header or use a keyboard shortcut).
  2. Click the “Email Board” pill on the start page.
  3. Once in the tab, the list displays unread email cards for each account (including sender, subject, and time).
  4. 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 by folder) 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 the link: method is recommended.
  • Privacy & security: Unread email titles and senders are private data. The read-only route includes a same-origin check (Sec-Fetch-Site verification) 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.

GitHub Repository | Community Directory

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye