This hack is activated by user participation on the board. TO do this you would have to take the last activity time by the user and compare it against the current time and if it is greater than your $cookietimeout then you would output a line separator.
As for the pruning, I figured the file entries can just be deleted. or edited manually. They really don't take up that much space to cause real concern.