In maildrop.py, the while len(to_be_sent) loop contains multiple log_file.close() statements, followed by a break out of the loop. Right after the loop, there's a log_file.write(finish_msg) that in these cases will raise an error.
In our case crashing maildrop.py, though I suppose that depends on the calling code.
In any case, the code flow should allow for just removing the early log_file.close() statements, since this will always be done after the while loop has been exited.
This fix works for us.
|