Migrate Mails from Source IMAP Account to Destination IMAP Account
| .env.template | ||
| .gitignore | ||
| email_migration.py | ||
| README.md | ||
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