Sorry if this has been covered before, and also I know this is not SpamSieve’s fault — I’m just hoping someone has some advice.
My symptom is that Apple Mail keeps resetting its rules. So, I delete the Apple News rule and create the SpamSieve rule, moving “all” messages to All Junk. Works fine. After a while (perhaps after restarting the computer?) I come back and SpamSieve is mysteriously not working at all — except that it’s no mystery, because Apple Mail has deleted the SpamSieve rule and has re-created the Apple News rule. Why, Apple?
More info: This is a new M1 machine running Monterey. I copied the SpamSieve prefs and account settings as explained in the manual, in order to keep my training data from the old machine (that part is working fine, so long as the SpamSieve rule is actually present).
I should add: Apple Mail also keeps resetting its signatures (i.e. I configure signatures and after a while they are all gone). So clearly it is losing certain preferences from time to time.
This is probably because of incorrect file permissions or ownership on the folder ~/Library/Mail/V9/MailData/ so that Mail can’t save your changes to disk. (Or, less commonly, it could be caused by old versions of those files syncing back to your Mac from iCloud.)
What does it show if you enter this command in Terminal?
ls -le@Oh ~/Library/Mail/V9/MailData/
Note that you will probably have to grant Terminal Full Disk Access in order for this to work.
More info: just quitting Mail itself and opening it again is sufficient to cause resetting of the Rules. No need to restart the computer or anything like that.
Those permissions look OK to me, but normally there should be a SyncedRules.plist file that stores the rules. So maybe it’s the containing folder that’s messed up and preventing the file from being created. What does:
I think that might be the key. I tried signing out of iCloud and so far everything seems fine and stable when I quit Mail and relaunch it. I’m going to try restarting the computer and see if it stays fine and stable! Also, the previous computer still exists, so I’m going to sign out of iCloud on that as well to make sure it isn’t interfering somehow.