AppleScript Error - Clicking 'Train as Spam"

I have two computers, running Sequoia 15.5. Both running SpamSieve 3.1.3 on my user account mail. Using the Apple Mail application only.

I noticed it on the ‘downstairs’ computer first, but I don’t use it for every day use near as much as my main computer, so I kinda ignored it.

Now though, my ‘upstairs’ main computer is doing this as well. If I hit ‘train as spam’ from the menu option on the menubar I get the following message:

An AppleScript error occurred.

SpamSieve encountered error -1751
(errOSAInvalidiD -):

<unknown error>
near:
<unknown location>

I’ve rebooted a couple times, I’m able to go into the log and mark the message I want to be marked as spam in there just fine.

I’m unaware of anything recently being installed/updated before this started happening, unfortunately

As near as I can tell, it’s working except for if I try to manually classifiy something as spam through the menu

Does this still happen when the downstairs computer is shut down or not running Mail?

I quit mail on the downstairs computer, had to run an errand so it was quit for over an hour, and message still happens on the other computer

Please click this link to enable some additional debug logging. Then when the problem recurs, please use the Save Diagnostic Report command in the Help menu and send me the report file, as described here.

Thanks for the report. It’s unclear what’s going on here because it looks like macOS is reporting this error before it gets to running any of SpamSieve’s AppleScript code.

If you temporarily select Disable spam filtering in Apple Mail and then restart SpamSieve, does training messages as spam then work?

Does the problem also affect training messages as good?

Until the issue is resolved, please continue training from the Log window to ensure that any mistakes get corrected.

If you want to disable the additional debug logging, you can do so by clicking here.

So, yeah it failed on good too. However…

I remembered that a ‘clean my Mac’ (https://cleanmymac.com/) app I used to try and prune out old data really screwed up one of my music composition applications and caused me to have to reinstall 7TB of samples/applications because it nuked a bunch of the library files.

So I downloaded, recopied spamassasin back in while mail was closed, and retried.

Works.

So, ‘CleanMyMac’ is a terrible application that deletes things it doesn’t recognize is my reason for it breaking.

Glad to hear that you got it working. Yeah, my experience is that those cleaning/uninstalling apps can cause problems because they don’t really understand what they’re deleting.