email scanning process