The file names look like this:
1339506150.22834_0.hoth:2,Sb 1339506889.22952_0.hoth:2,Sb 1339507621.23058_0.hoth:2,Sb 1339509572.27344_0.hoth:2,Sb 1339510487.386_0.hoth:2,Sb
To fix this, I wrote a little python program to parse out the dates the messages were originally received, and rename the message files. It also updates the file system's atime and mtime timestamps. Since several new "Received" headers were attached to the message when Google POPed the messages from Yahoo, and then when fetchmail downloaded them from Google, I needed to figure out which ones to disregard. I decided to compare the date the message was originally sent to each of the Received: dates, and use the most recent Received: header that was no more than 24 hours after the message was sent.
I made a backup of ~/Maildir/cur/ first.
You can loop over the message files like this:
I'm not really sure what the implications are for dovecot while mucking around in ~/Maildir, so I stopped that, and also fetchmail while doing it.
Here's the script. Use at your own risk:
I made a backup of ~/Maildir/cur/ first.
You can loop over the message files like this:
$ for file in $(ls -1); do ~/bin/timestamp.py $file; done
I'm not really sure what the implications are for dovecot while mucking around in ~/Maildir, so I stopped that, and also fetchmail while doing it.
Here's the script. Use at your own risk: