Hi,
Perhaps it is something else that is not thread safe, that do_mulipart() is calling?
Yes, my debug results show that it's messageToFileblob(), which is itself a complex function. Maybe a race with temporary files ? Locking the codepath to messageToFileblob fixes the problem too ... I'm still working on it ...
Martin _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net