The logic that I meant was for sending out the emails. Typically, instead of looping over all of the users, you would check if the user has unsubscribed from the email, if there was any kind of time preference, using batch finds instead of looping through every user, etc.