m365-spam-manager
适用于 Outlook/Exchange 邮箱的 Microsoft 365 垃圾邮件文件夹管理器。自动分析垃圾邮件,根据结构模式(缺少取消订阅链接、不良语言、可疑域、错误字符集等)计算可疑分数,并帮助清理垃圾文件夹。支持用户批准每个操作的审核模式(默认)以及批处理的自动模式。通过 --mailbox 标志使用共享邮箱。相关关键词:Outlook、Exchange Online、垃圾邮件过滤器、垃圾邮件、网络钓鱼、电子邮件安全。 **代币成本:** 每次使用约 500-1.5k 代币。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~tradmangh-m365-spam-managercURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~tradmangh-m365-spam-manager/file -o tradmangh-m365-spam-manager.md## 概述(中文) 适用于 Outlook/Exchange 邮箱的 Microsoft 365 垃圾邮件文件夹管理器。自动分析垃圾邮件,根据结构模式(缺少取消订阅链接、不良语言、可疑域、错误字符集等)计算可疑分数,并帮助清理垃圾文件夹。支持用户批准每个操作的审核模式(默认)以及批处理的自动模式。通过 --mailbox 标志使用共享邮箱。相关关键词:Outlook、Exchange Online、垃圾邮件过滤器、垃圾邮件、网络钓鱼、电子邮件安全。 **代币成本:** 每次使用约 500-1.5k 代币。 ## 原文 # M365 Spam Manager (Microsoft Graph) ## Installation Requires Node.js + npm install in the skill folder: ```bash cd skills/m365-spam-manager npm install ``` ## Setup Uses the same profile/credentials as `m365-mailbox`. Ensure you have a profile configured: ```bash node skills/m365-mailbox/scripts/setup.mjs --profile tom-business ... ``` ## Usage ### Review mode (default) — user must approve each action ```bash # Analyze junk folder and show suspicious scores (review mode - default) node skills/m365-spam-manager/scripts/analyze.mjs --profile tom-business-mail --mailbox radman@e-ola.com # Move a false positive to inbox (requires confirmation) node skills/m365-spam-manager/scripts/move-to-inbox.mjs --profile tom-business-mail --mailbox radman@e-ola.com --id <MSG_ID> # Move confirmed spam to learning folder node skills/m365-spam-manager/scripts/move-to-learning.mjs --profile tom-business-mail --mailbox radman@e-ola.com --id <MSG_ID> ``` ### Automatic mode (no confirmation) ```bash # Auto-clean: move high-confidence spam to learning, medium to review node skills/m365-spam-manager/scripts/auto-clean.mjs --profile tom-business-mail --mailbox radman@e-ola.com --threshold 80 ``` ## Suspicious Score Calculation The analyzer calculates a score (0-100) based on: | Pattern | Points | Description | |---------|--------|-------------| | No unsubscribe link | +20 | Legitimate marketing must have one | | Suspicious sender domain | +15 | Free email, misspellings, random strings | | All caps subject | +10 | Spam often shouts | | Excessive punctuation | +10 | !!!, ???, $$$ | | Suspicious keywords | +15 | crypto, win, free, urgent, verify, bank, password, ... | | Mismatched language | +10 | Subject in DE, body EN or vice versa | | Known scam patterns | +25 | "Attention - suspected SPAM", fake invoices | | Free email provider | +10 | gmail, yahoo, hotmail in From (not Reply-To) | | No DKIM/SPF indication | +5 | Graph doesn't show auth results | ### Score thresholds - **0-30**: Low suspicion — likely legitimate - **31-70**: Medium — review recommended - **71-100**: High — almost certainly spam ## Policy This skill respects the same policy as `m365-mailbox`: - `read`: autonomous (analyze, list) - `move`: controlled (move to inbox/learning folder) In review mode, the script always prompts for confirmation before moving emails.