Those pesky wrong dates!
Eudora Tip #92/01-Aug-2001
It’s important that you set your computer’s clock correctly as otherwise your emails can be sent with strange dates on them. If I have a full mailbox sorted by date with the most recent items at the bottom and your email is dated 1946 it will go to the top and I might never see it.
Sometimes though emails come through with dates in the future and those ones always sort to the bottom. This gets confusing as the newer items stay higher in the list.
Barry Wainwright has created an Applescript which fixes these messages and has given me permission to pass it on to you. You might like to look back at the Archive for Tips 77, 78 and 79 for information on working with Applescript <http://www.firstbite.co.nz/eutips>.
Barry writes: “This script sets the date of the message to the date contained within the first ‘Received:’ header, which tracks the progress of the mail through the various mail servers it passes through. You should at least get a message date close to the correct one.”
try
tell application "Eudora"
set AppleScript's text item delimiters to {";"}
set DateRecd to last text item of (get field "received" of message 0) set AppleScript's text item delimiters to {return}
set cleanDate to text items of dateRecd
set AppleScript's text item delimiters to {""}
set cleanDate to cleanDate as text
set field "Date" of message 0 to CleanDate
end tell
end try
set AppleScript's text item delimiters to {""}
=Barry Wainwright=
Thanks for reading. Remember to tell your friends about MacTips. Subscribe for regular Tips.






Add your Comment