On Jul 27, 2011, at 04:12, Brian Christmas wrote:
But I still don't understand what info you're after or what you do with it.
______________________________________________________________________
Hey Brian,
A very simple example of something I used to do regularly:
set messageSentDate to item 1 of (get content of headers whose name is "Date")
tell me to set unixDate to choose from list {messageSentDate} ¬
with prompt "Message Sent:"
In this particular instance I want the Unix Date, and that was an easy way to get it.
The point of my post was not to ask how to do it now. I can easily parse the header text, but I shouldn't have to.
Thanks though for the 'all headers' nomenclature. I had missed that, and it will save me a bit of overhead to parse it instead of source.
tell application "Mail"
set msg1 to first item of (get selection)
tell msg1
set h to (get all headers)
set AppleScript's text item delimiters to {"date: "}
set unixDate to paragraph 1 of text item 2 of h
end tell
end tell
Mail has undergone dramatic changes. I've lodged several bugs.
Yes. I shall be joining you in filing bugs...