Daily limits for outgoing mails per user

Spec is here:

PR is here:

Related line of code:

def mailing_list_mode_frequency_estimate
    # average of last 30 days of posts
    @mailing_list_mode_frequency_estimate ||= About.fetch_stats[:posts_30_days].to_f / 30
end

As stated it’s really cheap to calc and a mild overestimate, but maybe that’s alright because it’s better to surprise folks with fewer emails rather than surprise them with more.

7 Likes