make gzip overwrite existing file
reformat the body
auto-generate a summary if there is none
run a random maintenance task if rand(1,100) == 5
flush the output before starting our task
fix the gzip command