mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-02 08:07:11 +00:00
Stalwart only files spam into Junk when no rule decided where the message goes, so the webmail now adds `not spamtest :percent :value "ge" :comparator "i;ascii-numeric" "50"` to every move and copy rule when the server supports `spamtestplus` and `relational`, with a per-rule "Also move messages marked as spam" opt-in stored as `includeSpam` (6241ed61). Saving filters on the phone dropped the guard and the opt-in, so every folder rule started pulling spam out of Junk again, and opted-in rules lost their setting. Port the guard and keep `includeSpam` in the rules metadata. The rule editor gets the opt-in switch while the rule moves or copies mail. The round-trip fixtures now cover the guard and a script with every newer feature plus a hand-written rule. Both clients add two blank lines before a script's external rules on each save, so that fixture is compared with what the webmail itself writes when it saves it again.