second commit

optimized delete repeat mails func