-- PowerMail - Whitelist Recipients -- https://c-command.com/scripts/spamsieve/powermail-whitelist-recipients -- Summary: Adds the recipients of the current message to SpamSieve’s whitelist. -- Requires: SpamSieve, PowerMail -- Install Location: PowerMail Files/Custom Scripts -- Last Modified: 2019-05-24 tell application "PowerMail" set theAddresses to {} set msgs to current messages repeat with m in msgs repeat with r in m's recipients set a to r's address set e to a's email address copy e to end of theAddresses end repeat end repeat tell application "SpamSieve" tell whitelist add sender rules for addresses theAddresses end tell end tell end tell