Kmail html and "external images" settings confusing

I can set html and external images in three places:

Global settings (kmail settings - security)

Folder settings

Per contact settings

So my guess is that per contact settings take highest priority, followed by folder settings, and finally global settings. Is that correct?

If yes, it doesn’t work. Regardless of what my per-contact settings are, messages are always displayed in per-folder settings, and I have to re-change them to display correctly. Once I re-set them to my desired values, they display correctly, until I restart the computer.