On 27/07/2011, at 4:29 AM, Christopher Stone wrote:
Hey Folks,
Can someone confirm for me that 'headers' are broken in Mail 5.
I can't get name or content of headers like I could on Snow Leopard. The result is 'missing value'.
TIA
--
Best Regards,
Chris
G'day Chris.
There's most of the information in messages available from the properties. And the terminology now appears to be 'all headers'
tell application "Mail"
set foo to item 1 of (get the selection)
set bar to (get properties of foo) -- or using the name of the header
set temp to {deleted status, all headers, was replied to, flag index, date received, message id, background color, subject, read status, flagged status, message size, date sent, junk mail status, source, sender, was forwarded, was redirected, content} of foo -- -any property or properties
set Theheaders to {all headers} of foo
end tell
Theheaders