yahoomail-export

Export large Yahoo Mail archives via IMAP using the folder rotation strategy

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "yahoomail-export" with this command: npx skills add jimdawdy-hub/yahoomail-export

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

QQ Email Manager

企业邮箱管理(腾讯企业邮箱)。触发场景:用户说"查邮件"、"发邮件"、"回复邮件"、"转发邮件"、 "邮件列表"、"未读邮件"、"搜索邮件"、"邮箱统计"、"标记已读"等邮箱相关操作。

Registry SourceRecently Updated
5700Profile unavailable
General

Smart Email

Email assistant skill — check emails, AI summaries, daily digests. Supports Gmail, Outlook/M365, Google Workspace. Users interact through their chat platform...

Registry SourceRecently Updated
3580Profile unavailable
General

Email Tool

Send and search emails via Zoho using specified recipients, subject, body, and search queries with optional CC, BCC, and read marking.

Registry SourceRecently Updated
9730Profile unavailable
General

163 Email Monitor

Connect to 163/126/yeah.net (Coremail) email via IMAP, read inbox, search emails, and send emails via SMTP. Activate when user asks to check email, read mail...

Registry SourceRecently Updated
1890Profile unavailable