Threading broken in Apple Mail on the Mac and in iOS

I use my own mail server (which has its own problems, but messing with the heads is not one of them).