Skip to content

Instantly share code, notes, and snippets.

View lumaxis's full-sized avatar

Lukas Spieß lumaxis

View GitHub Profile
tell application "Mail"
set _accounts to {account "Private", account "Monkeys"}
set _1ago to (current date) - 1 * days
set _3ago to (current date) - 3 * days
set _7ago to (current date) - 7 * days
repeat with _account in _accounts
set _inbox to mailbox "INBOX" of _account
set read status of (messages of mailbox "⌛1 Day" of _account) to false
set read status of (messages of mailbox "⌛3 Days" of _account) to false