removed unused scripts, marking emails as read before delete