← Back to Skills Marketplace
jimdawdy-hub

Yahoo Mail IMAP Export

by James Dawdy · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
68
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install yahoomail-export
Description
Export large Yahoo Mail archives via IMAP using the folder rotation strategy
README (SKILL.md)

Yahoo Mail IMAP Export

⚠️ SAFETY WARNING: This tool moves and deletes emails. Always:

  • Test on a small folder first
  • Ensure you have backups
  • Review the code before running
  • Use at your own risk

Overview

Export Yahoo Mail accounts with 100K+ emails using the folder rotation strategy to bypass IMAP limitations.

The Problem

Yahoo Mail's IMAP has hard limits:

  • Regular server: 10,000 visible messages
  • Export server: 100,000 visible messages
  • Web interface: Shows all messages (uses different API)

The Solution

Move messages in batches to smaller folders, download, clear, repeat:

INBOX (132K) → export1 (8999) → download → clear
             → export2 (8999) → download → clear
             → export3 (8999) → download → clear
             → ... repeat until empty

⚠️ Destructive Operations

This strategy uses IMAP MOVE which:

  • Moves emails from INBOX to temporary folders
  • Deletes emails from temporary folders after download

Data Loss Risk: If the script fails between MOVE and download, emails may be lost. The script includes safeguards, but bugs or network failures can occur.

Safety Recommendations

  1. Test first: Run on a small folder (e.g., "Test" with 100 emails)
  2. Use Yahoo's backup: Export via Yahoo's web interface first as backup
  3. Monitor closely: Don't leave running unattended initially
  4. Check counts: Verify message counts match before/after each cycle
  5. Have backups: Yahoo Mail may have its own backup/restore

Files Included

  • purge_cycle.py - Main export script (DESTRUCTIVE - moves/deletes emails)
  • move_to_exports.py - Move-only script for testing
  • pre_filter.py - Rule-based email filtering
  • build_embeddings.py - Vector embeddings with Ollama
  • triage_emails.py - LLM-based email triage

Configuration Required

Before running, edit the scripts to set:

  • Your Yahoo email address
  • Your app password (generate at login.yahoo.com)
  • Your base directory path
  • VIP senders and search terms (in pre_filter.py)

Manual Usage (Recommended)

Instead of automated cron, run manually first:

python3 purge_cycle.py

Review the output, verify counts, then continue.

Automated Usage (Advanced)

Only after testing manually:

# Run every 15 minutes (adjust as needed)
openclaw cron create \
  --name "email-purge-cycle" \
  --every 15m \
  --message "Run: python3 purge_cycle.py" \
  --session isolated

Key Insights

  1. MOVE command works, COPY+DELETE loses messages
  2. Always use seq 1:N (sequence numbers shift after MOVE)
  3. Batch size: 8,999 (Yahoo errors at 10,000)
  4. Export server FETCH is slow - use regular server for download

Performance

  • ~3-4 hours per 8,999 messages
  • ~60 hours total for 132K messages

License

MIT-0 - See LICENSE file

Usage Guidance
Review carefully before installing or running. This skill is not obviously malicious, but it is high-impact: it can permanently delete Yahoo Mail and it handles an app password in plaintext. Use an independent Yahoo export/backup first, replace hardcoded credentials with a secret manager or environment variables, add a hard stop before deletion if any download fails, and avoid the cron automation until you have safely tested on a small folder.
Capability Analysis
Type: OpenClaw Skill Name: yahoomail-export Version: 1.0.1 The skill bundle is designed to export and then permanently delete Yahoo Mail messages to bypass IMAP limits. While the destructive behavior is clearly documented, 'purge_cycle.py' and 'move_to_exports.py' contain a hardcoded Yahoo App Password ('zgvpnfymmwxebpof'), which is a significant security risk. Furthermore, 'SKILL.md' provides instructions for the AI agent to automate these destructive operations via 'openclaw cron', which poses a high risk of unintended data loss if the download phase fails or the environment is not properly configured.
Capability Assessment
Purpose & Capability
The Yahoo Mail export purpose matches the included scripts, but the main workflow performs high-impact IMAP MOVE and expunge-delete operations on the user’s mailbox.
Instruction Scope
The documentation warns users, but running the main script starts destructive account mutation without an interactive confirmation or a clear safety gate that prevents deletion after partial downloads.
Install Mechanism
There is no install spec; the README describes manual Python/Ollama setup. This is not hidden, but dependencies and runtime requirements are not fully represented in registry metadata.
Credentials
A Yahoo app password is required for the purpose, but the scripts contain a plaintext password value and the registry metadata declares no primary credential.
Persistence & Privilege
The skill is not always-on by default, but SKILL.md includes an optional OpenClaw cron example that would repeatedly run the destructive purge cycle if created by the user.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install yahoomail-export
  3. After installation, invoke the skill by name or use /yahoomail-export
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Added a comprehensive safety warning and usage instructions to the documentation. - Introduced five new utility scripts: build_embeddings.py, move_to_exports.py, pre_filter.py, purge_cycle.py, summary_report.py, and triage_emails.py. - Provided clear steps for both manual and automated use, with emphasis on destructive operations and backup. - Included information on configuration requirements and script purposes. - Added a LICENSE file for MIT-0 licensing.
v1.0.0
Initial release of yahoomail-export. - Export large Yahoo Mail archives (100K+ emails) using an IMAP folder rotation strategy. - Moves messages in batches to smaller folders to bypass Yahoo's IMAP visibility limits. - Uses the IMAP MOVE command for reliability—COPY+DELETE may lose emails. - Provides optimized batch size guidance (8,999 messages) to avoid server errors. - Reference implementation available in scripts/purge_cycle.py.
Metadata
Slug yahoomail-export
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Yahoo Mail IMAP Export?

Export large Yahoo Mail archives via IMAP using the folder rotation strategy. It is an AI Agent Skill for Claude Code / OpenClaw, with 68 downloads so far.

How do I install Yahoo Mail IMAP Export?

Run "/install yahoomail-export" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Yahoo Mail IMAP Export free?

Yes, Yahoo Mail IMAP Export is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Yahoo Mail IMAP Export support?

Yahoo Mail IMAP Export is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Yahoo Mail IMAP Export?

It is built and maintained by James Dawdy (@jimdawdy-hub); the current version is v1.0.1.

💬 Comments