Installation guide · Optional features
Watch emails
Send an email when a watch finds new matches.
People can watch a finished search of the snapshot, or an applicant. When you load a delta, the service runs each watch on a search again within the hour and lists the matches it has not found before under Your watches on the search page. A watch on an applicant runs no search: within the hour it lists the applicant's publications that the delta adds.
With sign-in on, the service can also email people when a watch finds something new. It sends email only through Resend, an email delivery service, so you need a Resend account, a sender address on a domain you have verified there, and both BIOSEQUENCE_MAIL_FROM and BIOSEQUENCE_RESEND_KEY. With one setting alone the service does not start, and the log names the missing one. With neither, no email goes out.
BIOSEQUENCE_MAIL_DETAILS sets what each email holds, for every watch on the server:
- Unset or
off, the default: only how many new matches or publications one of the person's watches found, such as "One of your watches has 3 new matches. Sign in to see them.", with a link to Your watches on the search page. The email names no watch, query or match. on: the watch's name, its set or applicant, the date of the newest delta it ran on, and up to 50 of its new matches or publications with their titles. A new publication links to its patent, and a watch on a search links to the run's results, which open after sign-in.
Any other value stops the service at start, and the log names the setting. Each start's log says whether watch emails go out, and with or without details.
- Each email goes to the address in the person's email claim, so emails need
BIOSEQUENCE_OIDC_USER_CLAIM=email, the default. With another user claim, such aspreferred_username, watches show what they find on the page only. - Each email has a link that pauses the watch without signing in.
- With sign-in off there is no address to send to, so the service sends no email.
Guide version 1.63.0 · For Sequences 0.155.0