This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Fix emails with bad timestamps in a Maildir | |
# | |
# which are usually resulting from moves in IMAP clients | |
# If the client then doesn't ask Dovecot for a specific sorting, they will be shown in the order of the filename | |
# based timestamp. | |
# | |
# This script reads the date from the email header and set its UNIX timestamp and renames it with the proper date |