Repository navigation
feat(people): a sender of a newsletter only is a bot, a human author too - #3370
Merged
Merged
Conversation
Owner's ruling of 2026-11-25 (contact-kinds plan, PR #3323): a person whose mail all came from a list (List-Id, List-Unsubscribe, one-click unsubscribe, Feedback-ID, bulk Precedence or the bulk box), with no tie to the owner, no messenger identity and no discussion-list mail, moves to a sender bot with the reason `newsletter-only` on the next people list. - kindOf names the new `newsletter-only` kind signal; KIND_RULES 10 works every kind out again once. - ruleBotsBack also gives a newsletter-only rule bot back once a 1-to-1 mail (no list headers, at most SMALL_GROUP_MEMBERS in To and Cc) comes from it, besides the owner writing to it. - Mail types do not treat a newsletter-only bot as a program, so its mail stays `newsletter` rather than `promotion`. - The owner's moveToPerson/moveToBot (and the sorting rules through them) still win. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r change to wake the list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Task
Owner's ruling of 2026-11-25 (contact-kinds plan, #3323, "The model"): a sender who only sends a newsletter is a bot, even when a human writes it. This replaces the rule of #3339/#3356, which kept a human-written newsletter as a person with reach
broadcast.What changed
The rule. A person becomes a bot with reason
newsletter-onlyon the next people list when all of these hold:Precedence, or the bulk box;kindSignalsnamesnewsletter-only.KIND_RULES9 → 10, so every kind is worked out again once.Give-back. feat(people): bots are their own entity, apart from people (store version 75) #3356 gives a rule's bot back once the owner writes to it. A newsletter bot now also goes back once a 1-to-1 mail comes from it: no list headers, not in the bulk box, 1 to
SMALL_GROUP_MEMBERSin To and Cc. No trigger makes a kind stale for such a mail. SostoreKindschecks the mail added since the last check (email id watermark instore_settings) and runs the give-back when a newsletter bot sent some. No migration.Mail types. A newsletter bot is not a program for
mailTypeOf. Its mail staysnewsletterand is not turned intopromotion. After a give-back, only the newsletter mail keeps reachbroadcast.The owner's choice wins.
moveToPerson/moveToBot, and the sorting rules of feat(mail): sorting rules by mail, list, address and domain (store version 77) #3366 that go through them, win over the rule.Judgment calls
broadcast, but it does not count as list mail here. One Bcc from a human would otherwise make them a bot.List-Unsubscribe-PostandFeedback-IDget. A forged List-Id can make a human with no tie a bot, until a reply or a 1-to-1 mail gives them back.Testing
src/store/newsletter-bots.test.ts, throughsyncMailwith a fake source:newsletter;direct, and only the newsletter mail keepsbroadcast;moveToPersonwins.people-list.test.ts: in the bulk-box test, the sender now has one mail outside the bulk box. All of it in the bulk box would make her a bot.docs:checkpass.🤖 Generated with Claude Code