Email Record: Approximation and online algorithms :