DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Qqmail — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@zhengjunyao/dsh-qqmail

Qqmail

QQ Mail (and any IMAP/SMTP mailbox) for DeepSeek Harness: registers qqmail_* agent tools that list, search, read, send, reply to, flag and download mail through IMAP/SMTP with a QQ Mail authorization code (no OAuth, no 2FA redirect), plus a `qqmail` CLI and a `qqmail-mcp` stdio MCP server over the s

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @zhengjunyao/dsh-qqmail@0.1.0
READMECompatibilityVersions

Description

QQ Mail (and any IMAP/SMTP mailbox) for DeepSeek Harness: registers qqmail_* agent tools that list, search, read, send, reply to, flag and download mail through IMAP/SMTP with a QQ Mail authorization code (no OAuth, no 2FA redirect), plus a `qqmail` CLI and a `qqmail-mcp` stdio MCP server over the same core, and a web settings panel

Compatibility and provenance

Qqmail is published as @zhengjunyao/dsh-qqmail and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/16/2026

Versions

0.1.0stable
9/16/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
311.9 kB
Files
32
Surface
web
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
9/16/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in integrations-communication.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseRemote Web Ui@linxin666/dsh-remote-web-uiScan-to-pair remote access for the dsh web GUI that shares one official interface: a QR beside the settings button pairs phones and PCs into the same Web GUI (a portrait-touch adaptation layer for phones, full desktop on PCs) through one-time tokens and rIm@xmanrui/dsh-im把十一种 IM 渠道和公网 AI Office 接入本机 DeepSeek Harness。 Connect eleven IM channels and a public AI Office to a local DeepSeek Harness.Pocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).

README

@zhengjunyao/dsh-qqmail

A QQ Mail (and any IMAP/SMTP mailbox) plugin for DeepSeek Harness — the agent's mailbox. It registers qqmail_* agent tools that list, search, read, send, reply to, flag, move, delete and download mail over plain IMAP/SMTP, and ships two more entry points over the same core: a qqmail CLI and a qqmail-mcp stdio MCP server for other agents.

Authentication is a provider authorization code, not OAuth: enable IMAP/SMTP in the QQ Mail web console, generate a 16-character code, and paste it in. No OAuth application, no 2FA redirect, no browser round trip.

  • Read tools (qqmail_status, qqmail_config, qqmail_folders, qqmail_list, qqmail_search, qqmail_read, qqmail_attachment) are always registered.
  • Write tools (qqmail_send, qqmail_reply, qqmail_mark, qqmail_move, qqmail_delete) are not registered at all while readOnly is on (the default), so nothing can send or delete by accident.
  • Deletion defaults to moving into the Trash folder. Permanent \Deleted + EXPUNGE requires an explicit permanent: true.
  • The authorization code never reaches the model: tool results and the web panel only ever show a mask.

Getting the QQ Mail authorization code

  1. Open QQ Mail in a browser → 设置 / Settings → 账号 / Account.
  2. Find IMAP/SMTP服务 → enable it (a verification step is required).
  3. Copy the generated 16-character authorization code.
  4. Configure the plugin with it:
qqmail_config  email: "someone@qq.com"  authCode: "<the 16-character code>"

Then verify with qqmail_status probe: true — it connects to both servers for real and reports which side failed, in plain language (a wrong password vs. a missing service toggle are different messages).

The authorization code is not your QQ password. It can be revoked in the same screen without touching your account.

Installation

# from a GitHub repo tagged with the `dsh-plugin` topic
dsh plugin --profile web add github:zhengjy01/dsh-qqmail

# or from npm
dsh plugin --profile web add @zhengjunyao/dsh-qqmail

# local development
dsh plugin --profile web add link:/path/to/dsh-qqmail

Restart dsh web afterwards; the plugin appears as the QQ 邮箱 card in Settings.

The three entry points

1. Agent tools (the main one)

Twelve qqmail_* tools, described in the system prompt so the model knows they exist:

ToolWhat it does
qqmail_statusConfig + probe: true for a real IMAP/SMTP connection check
qqmail_configSet address, authorization code, provider preset, switches
qqmail_foldersList folders with message/unseen counts
qqmail_listNewest-first listing of a folder
qqmail_searchSearch by sender / recipient / subject / body / date / unread / flagged / size
qqmail_readRead one or many messages in full (batch uids is much faster)
qqmail_attachmentDownload attachment N of a message to disk
qqmail_sendSend a message (files as attachments)
qqmail_replyReply with Re:, In-Reply-To, References and a quoted original
qqmail_markRead/unread, starred/unstarred
qqmail_moveMove between folders
qqmail_deleteMove to Trash (default) or delete permanently

2. CLI

qqmail status --probe
qqmail folders
qqmail list --mailbox INBOX --limit 20 --unseen
qqmail search --from finance --since 2026-09-01
qqmail read 12345 12346
qqmail send --to a@b.com --subject "Hi" --text "Body" --attach ./report.pdf
qqmail reply 12345 --text "收到"
qqmail mark 12345 --seen --flag
qqmail move 12345 --to "Archive"
qqmail delete 12345

Every command accepts --json for the structured payload. The CLI reads the same <DSH_HOME>/dsh-qqmail.json, so configuring the mailbox once is enough — and QQMAIL_AUTH_CODE (or --auth-code - reading stdin) keeps the secret out of the process list.

3. MCP stdio server

For agents that cannot host a DSH plugin:

// Claude Code / Codex / any MCP client
{
  "mcpServers": {
    "qqmail": {
      "command": "npx",
      "args": ["-y", "@zhengjunyao/dsh-qqmail", "qqmail-mcp"]
    }
  }
}

npx @zhengjunyao/dsh-qqmail qqmail-mcp runs the server directly; bin also exposes it as qqmail-mcp. Tool schemas are generated from the same definitions the DSH tools use, so the two never drift. Only stderr carries diagnostics — stdout belongs to the JSON-RPC transport.

Write tools follow the configured readOnly switch; pass --allow-write to expose them regardless.

Configuration

Stored in <DSH_HOME>/dsh-qqmail.json (mode 0600; DSH_HOME defaults to ~/.dsh).

KeyDefaultMeaning
presetinferred from the addressqq / qq-exmail / 163 / 126 / gmail / outlook / custom
email—Full address; also the IMAP/SMTP login
authCode—Provider authorization code (the secret)
imapHost / imapPort / imapSecurepresetOverride the IMAP endpoint
smtpHost / smtpPort / smtpSecurepresetOverride the SMTP endpoint
smtpRequireTlstrueRefuse to send over a non-upgraded plaintext session
fromName / signature''Display name and plain-text signature
sentFolderauto-detectWhere the Sent copy is appended
downloadDir<DSH_HOME>/dsh-qqmail/attachmentsDefault attachment directory
readOnlytruefalse registers the write tools
timeoutMs30000Connect / command budget
maxParseMb / maxSendMb40Size caps in both directions
previewInListfalseInclude a body preview in listings
saveSenttrueAppend a copy of outgoing mail to Sent

Provider presets and their credential instructions are in src/core/presets.ts. Enterprise QQ Mail (exmail) uses a custom domain, so its preset must be selected explicitly.

Behaviour worth knowing

  • Chinese search terms are filtered locally. RFC 3501 SEARCH has no charset negotiation QQ Mail honours in practice, so a Chinese keyword would come back as a silent zero-match. Those searches scan a recent window (about 400 messages) in-process and report mode: "local".
  • An ASCII body search that matches nothing is re-checked locally. Non-ASCII bodies are MIME-encoded, so an ASCII word inside a Chinese body is invisible to the server. Reporting "no matches" there would be a false negative.
  • hasAttachments in listings is structural. ImapFlow's parsed BODYSTRUCTURE does not expose content-disposition, so the flag is derived from part types, name parameters and Content-IDs. The authoritative attachment list comes from qqmail_read.
  • Connections are pooled and serialized. One IMAP connection per account, commands serialized (IMAP has a single selected mailbox per connection), closed after 60 s idle; the CLI closes it immediately.
  • Sent copies reuse the exact bytes that were sent, so the archived message has the same Message-ID as the delivered one and threads correctly in other clients.

Security notes

  • The authorization code is written to <DSH_HOME>/dsh-qqmail.json with mode 0600. It is never returned by a tool, a route or the panel, and never logged.
  • Write tools are absent from the registry while readOnly is on — not merely refused at call time.
  • TLS certificates are verified; the plugin does not offer an "ignore certificate errors" switch. smtpRequireTls only exists for servers that genuinely speak plaintext (a local relay).
  • Deletion is a move to Trash unless permanent: true is passed explicitly.

Development

pnpm install
pnpm run build          # tsc --noEmit declarations + tsdown + shebang/chmod postbuild
pnpm run typecheck
pnpm test               # 90 unit + 68 end-to-end + 37 CLI/MCP assertions
pnpm run verify         # portability gate (isolated DSH_HOME, real install)

The end-to-end suites drive the real code over real sockets against the in-process fake SMTP/IMAP servers in tests/fakes.mjs, so session pooling, envelope parsing, body-part previews, flag stores, folder moves, the Sent append and attachment download are all exercised without touching a real mailbox.

See PORTABILITY-SOP.md for the release gate this plugin is verified against.

License

MIT