Regarding the “Apple Mail - Server Junk Mailbox” script (https://c-command.com/scripts/spamsieve/apple-mail-server-junk-mailbox) …
I have multiple email accounts. For each account I want the script to do the following: evaluate each message in the account’s server Junk mailbox and put good messages in the account’s In box and put spam messages back in the account’s server Junk mailbox (after color-coding them).
I configured accountAndServerJunkMailboxNames() and set pPerAccountSpamMailboxes to “true”, but this puts the spam from all accounts into the single mailbox specified in mainSpamMailboxInfo().
Perhaps I have misunderstood the intended function of the pPerAccountSpamMailboxes switch. Please let me know if there is a way to achieve what I described above. Thank you.