Browse the docs

mailWasRedirected

Returns 1 when the selected message has been redirected, otherwise 0.

Keyboard Maestro: MAILWASREDIRECTED

Details #

mailWasRedirected() takes no arguments and returns a number: 1 when the selected message has been redirected, otherwise 0.

Parameters #

Takes 0 arguments. {{ mailWasRedirected() }}

Examples #

mailWasRedirected()
→ 0

Gotchas #

  • Needs Automation permission for Mail. It reads the first selected message in Mail; when Mail isn't running, nothing is selected or Mail doesn't answer within about 5 seconds, the answer is 0.

  • Takes no arguments.