Skip to content

Improve e-mail digest#9689

Merged
Gargron merged 1 commit intomasterfrom
fix-digest-mailer
Jan 2, 2019
Merged

Improve e-mail digest#9689
Gargron merged 1 commit intomasterfrom
fix-digest-mailer

Conversation

@Gargron
Copy link
Copy Markdown
Member

@Gargron Gargron commented Jan 1, 2019

  • Reduce time-to-digest from 20 to 7 days
  • Fetch mentions starting from +1 day since last login
  • Fix case when last login is more recent than last e-mail
  • Do not render all mentions, only 40, but show number in subject
  • Do not send digest to moved accounts
  • Do send digest to silenced accounts

Fix case when last login is more recent than last e-mail

There is no bug report for this, but because the old code preferred last_emailed_at to current_sign_in_at, if you were ever e-mailed a digest due to absence, then came back, then would became inactive again, the digest would send you all mentions since that last e-mail, including all the mentions from the period you were active. I got a report of someone receiving a 6MB digest e-mail with over a thousand mentions.

@Gargron Gargron force-pushed the fix-digest-mailer branch 2 times, most recently from 46ec9dc to 8fb499a Compare January 1, 2019 16:29
- Reduce time-to-digest from 20 to 7 days
- Fetch mentions starting from +1 day since last login
- Fix case when last login is more recent than last e-mail
- Do not render all mentions, only 40, but show number in subject
- Do not send digest to moved accounts
- Do send digest to silenced accounts
@Gargron Gargron force-pushed the fix-digest-mailer branch from 8fb499a to f49a056 Compare January 1, 2019 22:56
@Gargron Gargron merged commit 66436d0 into master Jan 2, 2019
@Gargron Gargron deleted the fix-digest-mailer branch January 14, 2019 09:19
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
- Reduce time-to-digest from 20 to 7 days
- Fetch mentions starting from +1 day since last login
- Fix case when last login is more recent than last e-mail
- Do not render all mentions, only 40, but show number in subject
- Do not send digest to moved accounts
- Do send digest to silenced accounts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants