Skip to content

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

License

Notifications You must be signed in to change notification settings

PH1L900D/IMAP-Email-Date-Fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

IMAP Email Date Fixer

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.

Usage

  1. Clone or download the repository.
  2. 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.

Example

python fixdate.py INBOX Processed imap.example.com [email protected]

Requirements

  • Python 3.x
  • IMAP server access with appropriate permissions.

License

This project is licensed under the MIT License.

About

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

Resources

License

Stars

Watchers

Forks

Languages