- GitHub Staff
- @lumaxis
- @[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |