Repository navigation
One reminder email for people who came once - #145
Merged
Merged
Conversation
A daily Worker cron (15:00 UTC, production only, gated by WINBACK_CRON) emails, once per account ever, people who used Darknode on a single day: verified, signed up 2 to 45 days ago, not seen for 2 days, no monitor, digest off, not banned or the owner. The email points at the daily domain watch and checks their own domain when the address is on one. Each send is recorded before it goes out; a signed link turns reminders off. Owner page: a Reminder email panel (sent, came back after it, turned off, next run, send me a test) and a per-person line. Deleting an account now also removes its digest and reminder records (the digest record was left behind before). Privacy, TOS Section 14 and the changelog describe the email.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
People who sign up, use Darknode on one day and never come back now get one email, once, pointing them at the daily domain watch (the part that keeps working without them).
worker/winback.jspickWinBack):personOf);0 15 * * *, production only, gated byWINBACK_CRON=on. At most 25 per run, oldest sign-up first. Each send is written towinback/{uid}before it is sent, so nobody gets two./check/<that domain>; webmail addresses go to the Overview instead;/api/winback/stop, an HMAC distinct from the digest's)./api/admin/winback, owner only);digest/{uid}record behind.KEYED_BY_UIDnow coversdigestandwinback, so deletion and export both include them.TOS_VERSIONbump.Verified
npm test: 5234 passed. New tests cover:off:true, and that the digest token is rejected.Not verified
winback/anddigest/have no client rules, so default deny applies and only the Worker touches them.