The Tulp mailing list server sometimes corrupted data when distributing messages. I examined the code and found nothing wrong with it. Simply, I saw that the method for distributing the messages consisted in preparing a message file and then pipe it (with a call to popen) to the sendmail program. Though this was done very carefully, this method is known to be dangerous as the operating system can have problems buffering this type of data movement. A few months ago, we already had problems of this kind: the final part of the large messages was truncated when sent to the final part of the list. This was typically a buffering problem that I solved then by disbling buffering. But it seems that this is not enough. So this morning I changed the basic distribution mechanism. The new mechanism is much simpler: a file is prepared with the contents of the message, and this file is sent by doing a "system" call with this file as an input. This seems to have solved the problem. In addition, it will be faster as with this method, it is safe to use buffering.
Computers Network›Mailing list server
#1904