Scan your whole stack
From OX Research Newsroom
Are you using @mysterycode-liwen/dsh-mail?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.0
@mysterycode-liwen/dsh-mail was last scanned on 25 Nov 2026 at version 1.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.1.0 LATEST | 25 Nov 2026 | No rules fired |
| 1.0.1 | 25 Nov 2026 | No rules fired |
| 1.0.0 | 25 Nov 2026 | No rules fired |
| 0.0.0-stage | 25 Nov 2026 | Not shown |
Findings for v1.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
一个 DeepSeek Harness 侧边栏插件:在左侧栏收发 QQ、163、Gmail 等邮箱的邮件。用标准 IMAP 收信、SMTP 发信,账号与授权码保存在本机凭据保险箱,不经过任何第三方服务器。
A sidebar plugin for DeepSeek Harness that sends and receives mail from QQ / 163 / Gmail and other IMAP/SMTP accounts. Credentials stay in the local credential vault — nothing is relayed through a third-party server.
⚠️ QQ / 163 邮箱需要用授权码(app password),不是登录密码;Gmail 需要用应用专用密码。邮箱服务商要求开启 IMAP/SMTP 服务后才能使用。
从 npm 安装(推荐):
dsh plugin --profile desktop add @mysterycode-liwen/dsh-mail
从 GitHub 源码安装(跟踪 main 的最新改动):
dsh plugin --profile desktop add github:mysterycode-liwen/dsh-email
也可以在本仓库的插件索引中一键安装:在「设置 → 插件」中启用「自定义插件索引」,然后在「发现」标签添加索引源
https://mysterycode-liwen.github.io/dsh-email/index.json
从本地目录安装(开发用):
dsh plugin --profile desktop add link:E:/DeepSeek/dsh-email
安装后重启 DeepSeek Harness(或在插件卡片上关闭再启用),左侧栏会出现「邮件」入口。
本机需要 Python 3.10+:插件通过 Python 标准库 imaplib / smtplib 处理邮件,无需 pip 安装任何依赖。插件会依次尝试环境变量 MAIL_PYTHON、C:\Python314\python.exe 到 C:\Python310\python.exe,最后是 PATH 中的 python。
侧边栏面板
账号
@ 前的部分作为名称。名称只在本机显示,不会写回邮箱服务器。收件
读信
javascript: 链接),cid: 内嵌图片转成 data: URI 显示。写信
发件箱
联系人
其他
--dsw-alias-* 变量,日间 / 夜间主题都能正常显示。设置页(「设置 → 插件 → 邮件」)里可配置后台检查:
桌宠播报不需要浏览器通知权限,走的是桌宠插件的同源广播接口(/dsh-pet-7340/broadcast),桌宠睡着时会被拒绝。系统通知需要浏览器授权,首次点按钮时申请。
插件提供只读工具 mail_query,让 DeepSeek Harness 的 AI 助手方便查询邮箱内容(列出账号 / 列出邮件 / 读某封邮件 / 最近已发送)。出于隐私,默认关闭:必须先在「设置 → 插件 → dsh-mail」中打开「允许 AI 助手查询邮箱内容」开关,助手才能拿到邮件;关闭时工具直接返回“未开启”,不会访问邮箱。
该工具只读取邮件,不能发信、删信或修改任何数据,也不会返回授权码 / 密码等凭据。开关实时生效,关闭后立即失效,无需重启插件。
The read-only mail_query tool lets the DSH AI assistant query mail (list accounts / messages / read a message / recent sent). For privacy it is off by default: enable "Allow the AI assistant to query mailbox content" in Settings → Plugins → dsh-mail before the assistant can read mail; when off the tool returns "disabled" and never touches the mailbox. It cannot send, delete, or modify mail, and never returns credentials. The switch takes effect immediately.
| 服务商 | IMAP | SMTP | 凭据 |
|---|---|---|---|
| QQ 邮箱 | imap.qq.com:993 (SSL) |
smtp.qq.com:465 (SSL) |
授权码 |
| 网易 163 | imap.163.com:993 (SSL) |
smtp.163.com:465 (SSL) |
授权码 |
| Gmail | imap.gmail.com:993 (SSL) |
smtp.gmail.com:465 (SSL) |
应用专用密码 |
| 自定义 | 任意 | 任意 | 密码 / 授权码 |
非 993/465 端口可关闭 TLS 走 STARTTLS(IMAP 非 TLS 连接强制要求 STARTTLS 成功,否则拒绝发送凭据)。
浏览器端 client.js 通过 POST /api/dsh-mail 调 Host 端注册的私有 HTTP 路由(DSH connection.fetch.register,带连接层鉴权)。Host 端 index.js:
ctx.credentials),记录 key 形如 mail/acct-xxxxxxxx,只把脱敏后的账号元数据返回给 UI;bridge.py,通过环境变量 MAIL_REQUEST 传 JSON 请求、stdout 读 JSON 结果;bridge.py 用标准库实现 test / listMessages / getMessage / getAttachment / sendMessage / listSent 等操作;正文解码处理 charset 回退(UTF-8 / GB18030 / GBK / Big5 / Shift-JIS / EUC-KR)以消除中文乱码,附件按 RFC 2231 编码以保留中文文件名。Host 端操作一览:getSettings / setSettings / listAccounts / saveAccount / renameAccount / deleteAccount / testAccount / listMessages / getMessage / getAttachment / sendMessage / sentMessages / listContacts / saveContact / deleteContact。
联系人、发件箱缓存、设置都存在本机的 profile 存储里,不经过邮箱服务器(联系人不会同步到服务器通讯录)。
所有邮件操作在同一台机器上完成;插件本身没有对外上传行为。
<style>、事件属性、javascript: 链接全部剥离,仅保留安全标签与属性;data: URL 仅允许 data:image/。侧边栏没有「邮件」入口?
client.js 里 window.__ModuleLoader__.load({ id }) 的 id 必须与 package.json 的 name 完全一致(DSH 按包名查浏览器模块表)。装完先重启 DSH;仍没有就运行 npm run check。
测试连接失败? 确认邮箱已开启 IMAP/SMTP 服务,且使用的是授权码而非登录密码;QQ/163 需要到邮箱设置里生成授权码。TLS/SSL 端口用 993 / 465。
读信乱码? 插件会对未声明 charset 的正文逐个尝试常见中文编码。若某封邮件仍乱码,请把截图与邮箱服务商发我。
图片显示不出来?
远程图片需要能访问对应 URL;cid: 内嵌图片仅在邮件本身带有内嵌资源时显示(大于 2 MB 的内嵌图会被跳过以免撑爆响应)。
授权码存在哪?会上传吗?
存在 DSH 凭据保险箱,仅本地;插件没有网络上传行为。你也可以在「凭据保险箱」侧栏面板中查看 / 删除这些记录(key 形如 mail/acct-…)。
新邮件没有提醒? 先看设置页的「检测状态」:如果显示「轮询未运行」,检查开关是否打开;如果检查次数在涨但告警次数是 0,说明没检测到新邮件(可点「立即检查新邮件」验证)。用桌宠播报时,桌宠处于睡眠状态会被拒绝,叫醒它即可;用系统通知时,需要在浏览器里允许本页通知。
改了插件代码但界面没反应,或报 unknown op: xxx?
插件分为 Host 与 Client 两半。Client 半在刷新页面时重新加载,Host 半只在 DSH 进程启动时加载一次。改了 Host 半(index.js、bridge.py)必须完全退出 DeepSeek Harness 再启动——关掉窗口只是隐藏到托盘,请在托盘图标上右键退出,或用任务管理器结束所有 DeepSeek Harness 进程。
附件发不出去 / 下载失败? 单封邮件附件总量上限 25 MB,超过请分开发送。下载失败请确认邮箱服务商允许 IMAP 取信(部分企业邮箱对附件大小有限制)。
git clone https://github.com/mysterycode-liwen/dsh-email.git
cd dsh-email
npm run check # 校验 client id / patch name / manifest 一致
dsh plugin --profile desktop add link:$(pwd)
发布前 prepublishOnly 会自动跑 npm run check。
1.1.0
unknown op。1.0.1
MIT © 李文 (mysterycode-liwen)
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.