added mail view logging