Commit graph

5 commits

Author SHA1 Message Date
Elmar Sönser
49b5aac329 removed examples 2025-09-24 14:39:08 +02:00
Elmar Sönser
c8ca753c04 Add flexible authentication: email or username can be optional
Key improvements:
- Either email OR username can be empty (but not both)
- Enhanced validation logic for authentication methods
- Improved error messages showing available auth methods
- More flexible IMAPConnection constructor with better defaults

Authentication options:
1. Email-only: SOURCE_EMAIL=user@domain.de, SOURCE_USERNAME=
2. Username-only: SOURCE_EMAIL=, SOURCE_USERNAME=username123
3. Both (fallback): Provide both for automatic fallback
4. Dual method: Username tried first, email as fallback

Configuration updates:
- Update .env.template with all four authentication examples
- Clarify requirements and optional nature of fields
- Add comprehensive authentication scenarios

Documentation updates:
- Expand README with four authentication options
- Add troubleshooting for different auth combinations
- Clarify flexible requirements (either email OR username required)

This makes the script compatible with even more email providers and hosting scenarios.
2025-09-24 14:21:06 +02:00
Elmar Sönser
1d7fe31845 Add dual authentication support and comprehensive provider examples
Core functionality:
- Add dual authentication support (username + email fallback)
- Enhance IMAPConnection to try username first, then email
- Add SOURCE_USERNAME and DEST_USERNAME configuration options
- Improve authentication error handling and logging

Configuration updates:
- Add Host Europe to Securehost.de migration examples
- Include authentication method explanations for various providers
- Add comprehensive provider-specific settings (Host Europe, Securehost.de, etc.)
- Document username vs email login methods with examples

Documentation updates:
- Add dual authentication section in README
- Include Host Europe and Securehost.de specific examples
- Expand troubleshooting section with authentication help
- Add provider-specific troubleshooting guidance
- Include migration best practices

Features:
- Automatic fallback from username to email authentication
- Enhanced logging showing which authentication method succeeded
- Support for various hosting providers and their login requirements
- Improved error messages for authentication failures
2025-09-24 14:16:49 +02:00
Elmar Sönser
481e32bb73 Add flexible import folder functionality
- Add IMPORT_FOLDER_NAME configuration variable
- Support organized import (subfolders) or consolidated import (all to INBOX)
- Implement get_destination_folder() method for folder mapping
- Add email.utils import for proper date handling
- Update logging to show source → destination folder mappings
- Auto-create import folders as needed

Configuration examples:
- IMPORT_FOLDER_NAME=Imported → organized subfolders
- IMPORT_FOLDER_NAME= → all emails to INBOX

- Update .env.template with comprehensive explanations
- Add Host Europe and German hosting provider examples
- Include detailed configuration guides and troubleshooting
- Add realistic migration scenarios

- Update README.md with complete documentation
- Add feature overview and configuration guide
- Include usage examples and troubleshooting section
- Document both import modes with clear examples
2025-09-24 14:09:30 +02:00
Elmar
bd54ae469b Initial commit: Cross-platform email migration script
- 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
2025-09-24 00:08:31 +02:00