Please restore email digests

Maybe we should start with making sure this is true?

I’m pretty sure this isn’t true yet:

https://github.com/discourse/discourse/blob/bf9c4a7828c3c491a1f0cf3f33517806bb06c904/app/jobs/scheduled/enqueue_digest_emails.rb#L23

Both having been seen recently and having been emailed recently can suppress a digest. I suggest fixing both:

  • Receiving a normal notification should not block the digest from being sent. This would require introducing an additional column that stores when the last digest was sent.
  • There should be a way for a user to ask for digests even if they have been online. This could either use the site setting Send me email notifications even when I am active on the site or be a new one.