Skip to content

Instantly share code, notes, and snippets.

View Rocketeer007's full-sized avatar

Nick Price Rocketeer007

View GitHub Profile
@Rocketeer007
Rocketeer007 / fix_date.py
Last active April 29, 2018 20:09 — forked from daverigby/fix_date.py
fix_date.py - corrects the received date in IMAP folders
#!/usr/bin/python
# fix_date.py - corrects the received date in IMAP folders.
# Description:
# When moving mail between IMAP servers, the received date can become
# reset to the date when the message was added to the new server. This
# script attempts to fix this by setting the received date to the date the
# message was sent.
# Usage: