A Python script to correct the received date of emails downloaded from an IMAP server to match their original sent dates, and upload them to a different folder.
- Clone or download the repository.
- Run the script using:
python fixdate.py [--list-folders] src_folder dst_folder imap_server username
Arguments:
--list-folders
: List folders on the server.src_folder
: Source folder for downloading emails.dst_folder
: Destination folder for uploading modified emails.imap_server
: IMAP server address.username
: Username for IMAP server access.
Enter the IMAP password when prompted.
python fixdate.py INBOX Processed imap.example.com [email protected]
- Python 3.x
- IMAP server access with appropriate permissions.
This project is licensed under the MIT License.