Those pesky wrong dates!

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 [...]

 

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=

<http://www.barryw.net/>

Thanks for reading. Remember to tell your friends about MacTips. Subscribe for regular Tips.

Clip to Evernote

Tell us what you think.
Note: your comment is not published straight away. I check and approve all comments, otherwise the spammers get a free rein. I usually check comments within 24 hours.

Add your Comment

Take Control ebooks (affiliate link) are superb.
I do some of my best learning from them. Buy through my link so I can make more and better Tips.

Take Control of Using Lion.   Buy Take Control of iCloud.  Macworld iPhone 4S Superguide   Take Control of iTunes 10: The FAQ, Second Edition