I would like an AppleScript to activate all rules that have the string
"sort: " in their names.
As far as I know this is how to enable a mail rule:
tell application "Mail" to set enabled of rule "sort: foo bar" to true
- How do I get the names of all mail rules?
- How do I filter these names for containing the string