rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
wth373737/dsh-plugin-mail-triage
IMAP mail triage and safe cleanup for DeepSeek Harness: read-only incremental scan, hard-protection rule layer plus optional local-model classification, a triage report and hashed manifest, an explicit approval card, then move-to-Trash only.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wth373737/dsh-plugin-mail-triage
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Mail triage and safe cleanup for DeepSeek Harness.
Read-only incremental triage first, an explicit approval second, and only then a move to Trash. Reading and writing are separate tools with separate code paths, and there is no expunge anywhere in this plugin.
简体中文说明见 README.zh.md.
IMAP (incremental, metadata + a short body snippet)
→ hard-protection rule layer (OTP, invoices, attachments, phishing, school/official, sent, whitelist)
→ optional local Ollama classification
→ green (delete candidate) / yellow (needs review) / red (never auto-deleted)
→ Markdown triage report + local label list
→ manifest with a content hash
→ approval card
→ MOVE to the Trash mailbox
→ audit log
The first run only reads and labels. Nothing in the mailbox changes.
| Tool | Access | Purpose |
|---|---|---|
mail_triage_accounts |
metadata | list, import_thunderbird, set_secret, test, remove |
mail_triage_scan |
read-only | incremental scan, rules, local model, report |
mail_triage_review |
local | read the yellow queue / record verdicts |
mail_triage_plan |
read-only | build the delete list and manifest |
mail_triage_apply |
write | after approval, move to Trash |
mail_triage_audit |
read-only | audit log, reports, manifests |
No manual typing: the plugin decrypts the local Thunderbird profile
(key4.db + logins.json) and stores the account secrets in the DSH credential
store. Decryption happens locally with node:sqlite and node:crypto — no
Python, no NSS DLL, no native modules. Nothing is uploaded, and nothing is
written to the workspace in plaintext: if the host exposes no credential
service, saving a secret fails with an explanation instead of falling back to a
file.
In the DSH UI, Plugins → + Add plugin:
github:wth373737/dsh-plugin-mail-triage
imapflow (the single dependency, pure JavaScript) is installed by pnpm.
\Trash; if no Trash mailbox resolves, the plugin refuses
instead of guessing.Workspace .mail-triage/: config.json, state.json (cursors), labels.jsonl,
verdicts.jsonl, audit.jsonl, manifests/, reports/. Plain text, yours to
inspect or delete.
npm test # offline smoke tests: rules, decision matrix, schema validation, decoding, store, report
set_secret.import_thunderbird.node:sqlite needs Node 22.5 or newer. The runtime bundled with DSH satisfies
this; on an older host the plugin fails to load instead of degrading.set_secret, and a Thunderbird primary password typed into
import_thunderbird, become part of the conversation transcript. Prefer
import_thunderbird when Thunderbird already holds the password..mail-triage/secrets.json left by a build before 1.0.2 is moved
into the credential store and deleted the next time mail_triage_accounts
runs. If the service is unreachable the file is left alone and the tool says
to delete it by hand.After editing plugin code the Host still holds the previous module instance: toggle the plugin off and on in the Plugins panel to load the new code (no full restart needed).
MIT © 2026 wth373737
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。