sender in notes

This commit is contained in:
Maciej Krok 2016-09-23 13:24:23 +02:00
parent 9b8a02d9d4
commit 2f60f52007

View File

@ -5,9 +5,11 @@ using terms from application "Mail"
repeat with i from 1 to the message_count
set this_message to item i of these_messages
set this_sender to the sender of this_message
set messageid to message id of this_message
-- Make URL (must use URL-encoded values for "<" and ">")
set urlText to "[url=message:%3C" & messageid & "%3E] mail [/url]"
set urlText to "[url=message:%3C" & messageid & "%3E] mail from " & this_sender & " [/url]"
try
set this_subject to (subject of this_message) as Unicode text