Skip to content
TakoAPI
Back to skills

m365-spam-manager

by tradmangh

Web & Frontend Development
404Downloads reported by clawskills.sh
0Views
0 likesSign in to like this skill
—Not yet rated
Your rating

Brief

Microsoft 365 spam folder manager for Outlook/Exchange mailboxes.

Description

What This Skill Does

Manages the junk/spam folder in Microsoft 365 Outlook and Exchange mailboxes. Scores each email 0-100 using structural signals like missing unsubscribe links, suspicious sender domains, and known scam patterns. Operates in review mode by default, prompting confirmation before moving emails, with an automatic batch-clean mode for unattended processing.

It applies a transparent, rule-based scoring model on top of Exchange's native filters, exposing exactly which signals triggered each score so thresholds can be tuned per mailbox.

When to Use It

  • Clearing hundreds of accumulated junk emails from a flooded Outlook inbox
  • Rescuing legitimate newsletters mistakenly flagged as spam
  • Batch-cleaning a shared Exchange mailbox using a confidence threshold
  • Auditing a junk folder before migrating to a new email provider
  • Identifying phishing attempts missed by Exchange's built-in filters

Example Workflow

INPUT

User asks: analyze my junk folder and move obvious spam to the learning folder

AGENT
  1. 1

    Run analyze.mjs with the configured profile and mailbox flags

  2. 2

    Display each email with its suspicious score and the contributing pattern breakdown

  3. 3

    Prompt user to confirm which high-scoring emails to act on

  4. 4

    Execute move-to-learning.mjs for confirmed spam using the message ID

  5. 5

    Execute move-to-inbox.mjs for any false positives the user flags

OUTPUT

Junk folder reviewed with high-confidence spam moved to the learning folder and false positives restored to inbox

Requirements

  • Microsoft 365 account with Outlook or Exchange Online mailbox
  • Microsoft Graph API credentials configured via m365-mailbox profile setup

Installation

clawhub install tradmangh/m365-spam-manager

Run the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.

Links