Aggregator
CVE-2024-23264 | Apple tvOS information disclosure
CVE-2024-23264 | Apple iOS/iPadOS information disclosure
CVE-2024-23264 | Apple macOS information disclosure
CVE-2010-2204 | Adobe Acrobat Reader up to 8.2.4 memory corruption (EDB-14121 / Nessus ID 47164)
如何寻找隐藏的参数
Когда MFA бессильна: AiTM-фишинг становится всё популярнее у злоумышленников
树莓派推出 Raspberry Pi 500 和 Raspberry Pi Monitor
CVE-2017-12952 | libgig 4.0.0 gig File helper.h LoadString null pointer dereference (EDB-42546)
亚马逊云服务(AWS)如何生产威胁情报(一)
Marvell 市值超过英特尔
Auto Creating Reminders from Email Messages
In my constant state of trying to make things a bit more efficient for myself. (I'm a big believer in automation, ask anyone that has ever worked with me.) We have computers! Make the computers do work instead of us manually doing things on the computer.
I wanted to find a way to auto-create a reminder from an email. I assume you can figure out how to create a rule to match an email in Mail.app, but one of the actions you can take on a mail rule is "Run AppleScript". This AppleScript, given the email match, will create a reminder that links back to the email for you:using terms from application "Mail"
on perform mail action with messages selectedMessages
try
log "Starting script execution"
tell application "Reminders"
repeat with theMessage in selectedMessages
try
tell application "Mail"
-- Fetch subject and message ID
set emailSubject to subject of theMessage
set messageID to message id of theMessage
-- Mark email as read
set read status of theMessage to true
-- Change email color to blue
set background color of theMessage to blue
end tell
-- Log values for debugging
log "Email Subject: " & emailSubject
log "Message ID: " & messageID
-- Construct reminder properties
set reminderText to emailSubject
set emailLink to "message://%3C" & messageID & "%3E"
set reminderNotes to "Link to the email: " & emailLink
-- Create reminder in default list
tell list "Reminders" -- Change "Reminders" to your desired list name
make new reminder with properties {name:reminderText, body:reminderNotes}
end tell
on error errMsg
log "Error processing message: " & errMsg
end try
end repeat
end tell
on error errMsg
log "Script execution error: " & errMsg
end try
log "Script finished execution"
end perform mail action with messages
end using terms from
You need to change the "list" (see "tell list") you want the reminder to go into.
This will take an email, mark it as read, change the background color of the email to blue, create the reminder, and then exit.
You can't put the "message://" link in the URL field directly with AppleScript, as there is no method within the AppleScript reminders dictionary to access "URL". Shortcuts.app can, but AppleScript can't. (I know, right?)
But I have a Shortcut that I execute from the end of this AppleScript that moves it for me. You can execute the shortcut from the AppleScript by putting this after the last "end tell”.
do shell script "shortcuts run \"URL Mover for Reminders message\""
log "Shortcut executed successfully"
There's the shortcut. It'll handle both "message://" and "<message:" links (the latter created by OmniFocus if you moved from OmniFocus to Reminders).
Please leave comments below.
The post Auto Creating Reminders from Email Messages appeared first on Security Boulevard.
CVE-2013-2643 | Sophos Web Appliance 3.7.8.1 ftp_redirect.php h cross site scripting (ID 118969 / EDB-24932)
双十二活动、国家补贴…… 正是 iPhone 换机的好时候
2024叙利亚局势中的认知战分析研判
CVE-2018-1121 | procps/procps-ng up to 3.3.15 proc_pid_readdir race condition (EDB-44806 / Nessus ID 110255)
年关将至,这些单位用360安全大模型交上安全运营高分成绩单
Large-Scale Incidents & the Art of Vulnerability Prioritization
Public Reprimands, an Effective Deterrent Against Data Breaches
Skyhigh Security strengthens data protection for Microsoft Copilot
Skyhigh Security announced the expansion of its purpose-built data protection capabilities to secure Microsoft Copilot, the fastest-growing AI solution in the enterprise. This latest milestone underscores Skyhigh Security’s commitment to enabling safe AI adoption, building on a series of strategic advancements aimed at fortifying enterprise AI environments within the SSE platform. AI adoption continues to accelerate and redefine how businesses operate. In fact, Frank Shaw, chief communications officer at Microsoft noted in a statement that … More →
The post Skyhigh Security strengthens data protection for Microsoft Copilot appeared first on Help Net Security.