cleaned up code from start to process_maillog; logic should not have changed