- Add Python script for IMAP-to-IMAP email migration - Support for preserving folder structure, flags, and dates - Configurable via environment variables (.env file) - Batch processing with progress reporting and error handling - SSL/TLS support for secure connections - Folder filtering capabilities (include/exclude) - Comprehensive logging system - Works natively on Linux and macOS without dependencies - Include .env.template for easy setup - Add comprehensive README with setup instructions
549 B
549 B
Email Migration Script
A Python script to migrate emails from one IMAP account to another, preserving folder structure and metadata.
Quick Start
- Edit .env file with your email credentials
- Run: python3 email_migration.py
Requirements
- Python 3.6+ (pre-installed on Linux & macOS)
- No additional dependencies required
Configuration
Edit the .env file with your email account settings.
Important Notes
- Use app passwords, not regular passwords
- Test with a small folder first
- Check email_migration.log for detailed logs