Re: Getting text out of Mail headers
Re: Getting text out of Mail headers
- Subject: Re: Getting text out of Mail headers
- From: LuKreme via AppleScript-Users <email@hidden>
- Date: Tue, 9 Jun 2020 12:54:35 -0600
On Jun 8, 2020, at 18:14, Shane Stanley via AppleScript-Users wrote:
>
> Messages contain header objects. For example:
>
> tell application id "com.apple.mail" -- Mail.app
> set theMessage to item 1 of (get selection)
> set theIP to content of header 1 of theMessage whosename is
> "x-originating-ip"
> end tell
Interesting. How does that deal with Received headers where there are multiples
in each email?
I need to get to my computer to check, but that syntax was not obvious (header
1??)
Thanks, will explore further.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden