Email Record: Automata theory : an engineering approch