Not directly to your exact question, but do you have something like rspamd set up? I would consider doing some filtering with rspamd modules. It’s a lot of learning to go through, but has some good defaults. It can filter outgoing mail as well as incoming.
Sounds like https://bugs.kde.org/show_bug.cgi?id=465864