Can I modify the date headers in received messages?

S

Shawn

I've got a few messages from people whose computer's clock was set
wrong (1918!) and want to correct this... Any way to do this? I'm
using Entourage X on OS 10.3.

Thanks in advance!
 
A

Adam Bailey

I've got a few messages from people whose computer's clock was set
wrong (1918!) and want to correct this... Any way to do this? I'm
using Entourage X on OS 10.3.

If this is screwing up your list view, consider turning off the Sent
column and turning on the Received column. This is done in View >
Columns.

If you really want to edit the message: drag it to your desktop, edit
it in a text editor (TextEdit will do), then drag it back to your
folder list.
 
D

Dave Cortright

I've got a few messages from people whose computer's clock was set
wrong (1918!) and want to correct this... Any way to do this? I'm
using Entourage X on OS 10.3.

Thanks in advance!

You can run this script with messages selected to set the Sent time to be
the same as the Received time:

tell application "Microsoft Entourage"
set currentMessages to the current messages
repeat with theMsg in the currentMessages
set time sent of theMsg to time received of theMsg
end repeat
end tell
 
S

Shawn

Thanks for your solutions, guys.
Listing messages by date rec'd works only if you don't have stuff you
sent (replies) in the same folder, and want those replies to be listed
in chronological order alongside received messages, since they don't
have a "date received" property.
The script worked great as an application but for some reason I
couldn't get it to work from Entourage's script menu... I Tried saving
it in a couple different formats but no go. No biggie, it did the job.
:)

Thanks again!
 
P

Paul Berkowitz

The script worked great as an application but for some reason I
couldn't get it to work from Entourage's script menu... I Tried saving
it in a couple different formats but no go. No biggie, it did the job.
:)

Have you updated Entourage to v10.1.4? The versions before 10.1.1 won't run
compiled scripts made in Jaguar or Panther Script Editor. Update Office to
10.1.2, then 10.1.4.

--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: <http://www.entourage.mvps.org/toc.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
 
B

Barry N. Wainwright

Here's another script - rather than use the 'time received', it will scan
through the message and use the time of the first 'received' header in the
email, which is normally only a second or two after the message was sent.

-- Correct the date v1.0 25th June 2002
-- a script for Microsoft Entourage by Barry Wainwright
-- Resets the date of messages to the date of the first received header
-- useful for messages with badly formatted (or just plain wrong) dates

tell application "Microsoft Entourage"
set theMessages to current messages
if theMessages is {} then
display dialog "No messages selected!" buttons {"Stop"} default
button 1 with icon stop
return -99
end if

repeat with theMess in theMessages
set theHeaders to the headers of theMess
set AppleScript's text item delimiters to {return & space}
set theHeaders to text items of theHeaders
set AppleScript's text item delimiters to {space}
set theHeaders to theHeaders as string
set AppleScript's text item delimiters to {return & tab}
set theHeaders to text items of theHeaders
set AppleScript's text item delimiters to {space}
set theHeaders to theHeaders as string
set theHeaders to the paragraphs of theHeaders
set receivedHeader to ""
repeat with aHeader in theHeaders
if aHeader starts with "Received:" then copy contents of aHeader
to receivedHeader
end repeat
set AppleScript's text item delimiters to {";"}
set theDate to (last text item of receivedHeader)
set time sent of theMess to date theDate
end repeat
end tell

--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the Entourage FAQ pages? - Check them out:
<http://www.entourage.mvps.org/toc.html>

Please post responses to this newsgroup. If I ask you to contact me
off-list, remove '.INVALID' from email address before replying.
 
J

jordi.palet

Hi,

I tried to use this scrip, but it fails. It seems it doesn't like the
time format.

Anyway, it seems there is a bug in Entourage, becuase some times when I
move emails from the inbound IMAP foler other IMAP to others, it keeps
the right receiption date/time. But in some other situations, it
changes it to the date/time when I moved the folders. This is quite odd
when trying to keep some order in your folders !

So:

1) Any idea about how to solve this in all the IMAP folders, once it
actually happended ?

2) Any idea about if this is actually an Entourage bug and when it will
be sorted out ?

Regards,
Jordi
 
J

jordi.palet

Hi,

I tried to use this scrip, but it fails. It seems it doesn't like the
time format.

Anyway, it seems there is a bug in Entourage, becuase some times when I
move emails from the inbound IMAP foler other IMAP to others, it keeps
the right receiption date/time. But in some other situations, it
changes it to the date/time when I moved the folders. This is quite odd
when trying to keep some order in your folders !

So:

1) Any idea about how to solve this in all the IMAP folders, once it
actually happended ?

2) Any idea about if this is actually an Entourage bug and when it will
be sorted out ?

Regards,
Jordi
 
Top