Skip to content

Bash script setting emails creation time according to Date: header

Notifications You must be signed in to change notification settings

FreelancerJay/fix-imap-time

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

This shell script corrects email messages where the file system date does not match the Date: header in the email.

This will fix problems with mail clients like Apple's mail.app which uses the file system timestamp resulting in emails with the wrong file system timestamp to display the wrong received date

This script has to be run by a user [root] with the necessary privileges to read/modify files in a user's Maildir. It has been successfully tested on Linux.

Original author:
Date: July 4th, 2005
Author: Benson Wong
Email: [email protected]

## how to run

```bash
bash ./fix_imap_time_for_apple_mail_app.sh /path/to/maildir
```

Stop dovecot first, resume it later
If using a frontend server as an IMAPc proxy, stop dovecot there and remove the caches there as well

About

Bash script setting emails creation time according to Date: header

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%