notfound 349316 4:3.5.6.dfsg.1-1 thanks Ok, it seems there is at least one bug in kmail. It writes the address book at shutdown, overwriting any changes that may have happened in between. That's really broken.
It doesn't always result in a truncated file, but sometimes just writes back an outdated version, so changes made in other programs are lost. I will investigate more and file a bug report. This bug can probably be closed, my problems are likely due to other bugs.
smime.p7s
Description: S/MIME cryptographic signature