From 2f60f52007113029e5195e936bc9fa3870de7252 Mon Sep 17 00:00:00 2001 From: Maciej Krok Date: Fri, 23 Sep 2016 13:24:23 +0200 Subject: [PATCH] sender in notes --- thingspy/mailToThings.scpt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/thingspy/mailToThings.scpt b/thingspy/mailToThings.scpt index 5b74db1..49a43b9 100644 --- a/thingspy/mailToThings.scpt +++ b/thingspy/mailToThings.scpt @@ -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