Email Record: Mathematical aspects of scheduling and applications