gmail server not syncing properly with apple mail
I use Apple Mail for all my email (email servers- iCloud, MS outlook, gmail). I have all the newest updates. Everything works except since 2021 my rules with the gmail server do not work (it worked before for a few months). Some of them work but many emails just remain in the main inbox and the rules are not applied. When I move an email manually it syncs fine (it tells gmail the right thing). But when a rule is applied (right click: apply rules) then it moves the email the right way/it applies the rule but it does not tell the gmail server that it did that and the server syncs it again into the main inbox without applying the rule.
I did clean all the rules and none of them says: stop evaluating rules. I restarted/logged out-logged in everything in any combination, I played around with the rules themselves, I checked in gmail filters but I cannot find any place where I can improve anything. Should I mess around with .plist ? RulesAcitveState.plist or anything else? My emails from gmail are all unread (coming in unread) so there is no problem with that. That is not the reason.
Does anybody sync Apple Mail with gmail server here and has the same problem?
I asked in this forum before. But nothing helped (and very few answers).
Aren`t rules one of the most important aspects of an email programme? I don`t understand why Apple moderators here do not have solutions. I have to use gmail filters online in order to have rules in Apple Mail.
Any new ideas are appreciated! Thanks!
Mac mini, macOS 15.5