Hi Vladislav,
i think this is independently from thread or thread leading messages i have the same bug when threading is disabled and the bug is only in the with threads patched RC not in the standard RC. And when because of this then the bug would not be sporadic.
one two times is all ok and then sporadic comes the bug and messages shows twice.
I have spend mass time on this and I do not find the reason or solution.
best Eric
List info: http://lists.roundcube.net/dev/