Max Gossell [EMAIL PROTECTED] on 17 May 2004 stated:
>Is there a way to add the sender's local time to the Simple Header? If
>not, it would be nice to have it put on the to-do list.
Max:
You can add this via an AppleScript for now. Not the best solution in the
world, but it does work and if you don't like to show the long headers,
this might be an option for you.
-- Begin AppleScript
(* Add Time Message was sent by the user to the top of a message
It's important to note that if you get Time Sent of a message via
AppleScript, it is
converted to YOUR local time. Thus it's more important to grab the
message's header and
get the time sent that is placed in the header.
*)
set TID to AppleScript's text item delimiters
set NewTID to "Date:"
try
tell application "PowerMail 5.0b18"
set MyMessage to current messages
repeat with i in MyMessage
set TheTime to (time sent of i)
set TheHeaders to (headers of i)
set theContents to (content of i)
-- Break up header
set AppleScript's text item delimiters to NewTID
set TempTime to text item 2 of TheHeaders
set AppleScript's text item delimiters to return
set Users_Time to text item 1 of TempTime
set AppleScript's text item delimiters to TID
-- Make new contents
set MyContents to "User's Local Time When Message was
sent: " &
Users_Time & return ¬
& "My Time when Message was Sent: " & TheTime &
return & return ¬
& theContents
set content of i to MyContents
end repeat
end tell
on error
set AppleScript's text item delimiters to TID
end try
-- End AppleScript
Hope this helps.
Wayne
--
sans la Musique la Vie serait une Erreur
Without music, life would be a mistake.
- Friedrich Nietzsche
Live DAT & Music Page: http://homepage.mac.com/wayneb/
Wayne's Music Calendar: http://ical.mac.com/wayneb/Music
PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html
Music Currently playing: The Watchmen "Must to be Free" : 2003-12-16 The
Palace, Calgary AB