Apple Mail - Rescue Good Messages

I am running Apple Mail as a drone. I have several different accounts there. Is there a way to customize the Apple Mail - Rescue Good Messages script so that it only runs on one of the accounts? I plan on running it as a standalone application, if that makes a difference. Thanks.

There is a line that says:

set _mailboxes to mailboxes of junk mailbox

You could change that to:

set _mailboxes to mailboxes of junk mailbox where name of its account is "YourAccountName"
1 Like

Thank you!