Xpersona
I

Inbox Cleanup

CLAWHUB · Unverified

IMAP bulk email triage — pattern-based delete/archive with dry-run mode. Supports IMAP STARTTLS (e.g. Proton Bridge), dry-run preview, YAML/JSON config for p... Skill: Inbox Cleanup Owner: nissan Summary: IMAP bulk email triage — pattern-based delete/archive with dry-run mode. Supports IMAP STARTTLS (e.g. Proton Bridge), dry-run preview, YAML/JSON config for p... Tags: latest:1.0.5 Version history: v1.0.5 | 2026-05-21T16:59:56.139Z | user Align SKILL.md metadata with published version and lifecycle notes. v1.0.4 | 2026-05-21T16:54:54.740Z | user Sync local skill updates from

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17f2fw07zktjmcgagf5c29tbd83rt7v:inbox-cleanup
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nissan-inbox-cleanup/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

45,200 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: inbox-cleanup
version: 1.0.5
metadata:
  openclaw:
    emoji: 📬
    requires:
      bins:
      - python3
      env:
      - IMAP_PASSWORD
    network:
      outbound: true
      reason: Connects to IMAP server (e.g. Proton Bridge on localhost) to read and
        delete/archive emails.
    primaryEnv: IMAP_PASSWORD
description: IMAP bulk email triage — pattern-based delete/archive with dry-run mode.
  Supports IMAP STARTTLS (e.g. Proton Bridge), dry-run preview, YAML/JSON config for
  patterns, and processes UIDs for reliable bulk ops.
---

# inbox-cleanup

Bulk IMAP email triage: classify → delete/archive by sender domain, subject keywords, or custom patterns.

---

## When to Use This / When NOT to Use This

**Use inbox-cleanup when:**
- You need to bulk-delete or archive 50+ emails matching a pattern (sender domain, subject keyword)
- The inbox has a large backlog from known noisy senders (GitHub notifications, Slack digests, newsletters)
- You want a dry-run preview before committing any destructive action
- You need reproducible triage logic stored as config (not one-off manual clicks)

**Do NOT use inbox-cleanup when:**
- Reading or searching for a specific email — use IMAP tools or webmail directly
- Triaging fewer than ~10 emails — just do it manually
- You want to reply, forward, or compose — this is delete/archive only
- You're unsure what's in the inbox — **always dry-run first**, never run live blind

**Boundary with other skills:** This skill does NOT read email content for decision-making (no NLP/LLM classification). It matches on sender domain and subject string patterns only. For content-aware triage, a different approach is needed.

---

## ⚠️ What NOT to Delete

Some email categories look like noise but must be preserved:

- **Transactional emails** — order confirmations, shipping notices, receipts (needed for expense tracking)
- **Auth codes / OTPs / 2FA emails** — one-time codes, password resets
- **Legal / compliance** — invoices, tax docs, terms-of-service change notices
- **Bank / financial** — statements, transaction alerts
- **Domain / hosting renewals** — expiry notices from registrars, DNS providers

**Safeguard pattern:** Add these sender domains to `leave_domains` in your config. When in doubt, archive instead of delete.

```yaml
leave_domains:
  - ato.gov.au          # Australian Tax Office
  - myob.com            # Accounting
  - godaddy.com         # Domain registrar
  - cloudflare.com      # DNS / hosting
  - stripe.com          # Payments
  - paypal.com          # Payments
  - no-reply@apple.com  # Apple receipts
```

---

## Key Files

- `scripts/inbox_cleanup.py` — main cleanup script (dry-run by default)
- `scripts/config_example.yaml` — pattern config template

## Quick Start

```bash
# Step 1: Always dry-run first — no changes made, just a preview
python3 scripts/inbox_cleanup.py --config my_patterns.yaml --dry-run

# Step 2: Review the output. If it looks right:
python3 scripts/inbox_cleanup.py 

_meta.json

{
  "ownerId": "kn72rbtybr3jzhcj2260qz6p2181x1mr",
  "slug": "inbox-cleanup",
  "version": "1.0.5",
  "publishedAt": 1779382796139
}

scripts/config_example.yaml

# inbox_cleanup config — copy this and customise for your inbox

# Domains to DELETE (permanently expunge)
delete_domains:
  - github.com
  - noreply.github.com
  - gitlab.com
  # Add any domain you want to hard-delete

# Domains to ARCHIVE (move to archive folder, remove from inbox)
archive_domains:
  - notion.so
  - substack.com
  - medium.com
  - hashnode.com
  # Add newsletter/SaaS domains to archive

# Keywords in subject line → ARCHIVE
archive_keywords:
  - newsletter
  - digest
  - weekly
  - roundup
  - unsubscribe

# Regex patterns in subject line → DELETE
delete_subject_patterns:
  # - "^\\[GitHub\\] "    # GitHub notifications
  # - "Your receipt from"

# Domains to explicitly LEAVE (override archive/delete rules)
leave_domains:
  - mybank.com
  - important-service.com

skill-card.md

## Description:

IMAP bulk email triage for pattern-based delete and archive workflows with dry-run preview, YAML/JSON configuration, STARTTLS support, and UID-based bulk operations.

This skill is ready for commercial/non-commercial use.

## Publisher:

[nissan](https://clawhub.ai/user/nissan)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to preview and apply reproducible IMAP inbox cleanup rules for large backlogs, moving or deleting messages by sender domain, subject keyword, or configured pattern. It is best suited for bulk triage where the user can review dry-run counts before any live mailbox changes.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Live mode can permanently delete mailbox messages or expunge archived messages from the inbox.

Mitigation: Run dry-run first, review counts and sample subjects, and prefer archive rules over delete rules when retention is uncertain.

Risk: Broad or mismatched sender-domain and subject patterns can affect important messages.

Mitigation: Populate leave_domains for banks, authentication, receipts, legal, account, and payment services before running live.

Risk: IMAP credentials and certificate-verification bypass can expose sensitive mailbox access.

Mitigation: Use revocable account-specific credentials and only bypass certificate verification for a trusted local bridge such as 127.0.0.1.

Risk: Concurrent mail clients or server-side deleted flags can make live mailbox state harder to reason about.

Mitigation: Avoid running live cleanup while other mail clients may have messages marked deleted.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/nissan/skills/inbox-cleanup)
- [Publisher profile](https://clawhub.ai/user/nissan)
- [SKILL.md](artifact/SKILL.md)
- [inbox_cleanup.py](artifact/scripts/inbox_cleanup.py)
- [config_example.yaml](artifact/scripts/config_example.yaml)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with inline shell commands and YAML/JSON configuration examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [The bundled script can print dry-run or live execution summaries and can optionally write a JSON report.]

## Skill Version(s):

1.0.5 (source: server release metadata and frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Inbox Cleanup and adjacent AI workflows.