Skip to content

Commit 37091ea

Browse files
committed
docs: a disabled account's announcements skip only an address an active or deleting account owns
1 parent e74a966 commit 37091ea

4 files changed

Lines changed: 19 additions & 17 deletions

File tree

‎crates/database/src/repositories/announcements/mod.rs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,10 @@ impl AnnouncementRepository<'_> {
390390

391391
/// The recipients of `id` with a primary verified address, whom its email
392392
/// goes to: unless it is essential, only those who did not turn
393-
/// announcements' email off. A disabled account's address that another
394-
/// account verified since is that account's, so it is left out. Their rows stay key-share locked until the transaction ends, so a
395-
/// purge of one waits for the emails to be queued, and then deletes its own.
393+
/// announcements' email off. A disabled account is left out when another
394+
/// account, an active one or one being deleted, owns its address. Their rows
395+
/// stay key-share locked until the transaction ends, so a purge of one waits
396+
/// for the emails to be queued, and then deletes its own.
396397
///
397398
/// # Errors
398399
///

‎crates/database/src/repositories/deliveries/announcement.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Channel for Announcement {
7272
impl EmailRepository<'_> {
7373
/// The email of the sent announcement `id` to `user_id`, at the account's
7474
/// primary verified address now, if it still has one that no other account
75-
/// verified since (as one may a disabled account's), is still a recipient
75+
/// owns (an active one or one being deleted), is still a recipient
7676
/// (a purge removes it), and, unless it is essential, did not turn
7777
/// announcements' email off since it was queued.
7878
///

‎docs/dev/architecture/delivery-queue.md‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ the `Message-ID` scheme with it.
166166

167167
Sending an announcement writes a notification of kind `announcement`, with its
168168
subject and text, to each recipient's inbox, from the recipients it locked, and
169-
records `AnnouncementSent`, whose fan-out creates one delivery per
170-
recipient with a primary verified address, leaving out, unless the announcement
171-
is essential, those who turned announcements' email off
169+
records `AnnouncementSent`, whose fan-out creates one delivery per recipient
170+
with a primary verified address, leaving out, unless the announcement is
171+
essential, those who turned announcements' email off
172172
([email preferences](notifications.md#email-preferences)). Disabling an account
173-
releases its addresses to other accounts: once another one verifies the disabled
174-
account's primary address, the address is the other account's, and the disabled
175-
account's email is left out. These emails go out
176-
here, never on the `email` channel, and link the inbox. Each names its list in
173+
releases its addresses to other accounts, so a disabled account is also left
174+
out when another account, an active one or one being deleted, owns its primary
175+
address. These emails go out here, never on the `email` channel, and link the
176+
inbox. Each names its list in
177177
a `List-Id` header (RFC 2919), `<announcements.<sender's domain>>`, so mail
178178
clients can sort and filter announcements, and one that is not essential also
179179
carries the recipient's one-click unsubscribe link, in its body and its
@@ -182,10 +182,11 @@ every kind of email: bulk mail gets them, and transactional mail, every email
182182
about the account itself, none. A delivery stores only the account's ID
183183
as its recipient and the announcement's ID as its payload, and its `destination`
184184
names both. The sender reads the account's primary verified address and the text
185-
when it sends, so an address changed meanwhile gets it, and an account with none
186-
left, whose address another account verified since, no longer a recipient, or
187-
that turned announcements' email off since, unless it is essential, is skipped: the delivery succeeds without a send. The text of a sent announcement never changes, so every attempt sends the
188-
same message. `MAX_AGE` is three days, as an announcement stays worth reading
185+
when it sends, so an address changed meanwhile gets it. An account with none
186+
left, whose address another account owns now, no longer a recipient, or that
187+
turned announcements' email off since, unless it is essential, is skipped: the
188+
delivery succeeds without a send. The text of a sent announcement never changes,
189+
so every attempt sends the same message. `MAX_AGE` is three days, as an announcement stays worth reading
189190
through a long relay outage or a slow send to every account. A purge deletes the
190191
account's announcement deliveries, which would find no recipient left.
191192

‎docs/dev/operations/administration.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ meanwhile, by another administrator say, is refused, to be checked again. Once
400400
sent, its page says how many recipients read it. One to everyone goes to every
401401
account at that moment, disabled ones and ones being deleted included, since
402402
SourceOrigin still holds their data. A disabled account is not emailed at an
403-
address another account has verified since, which is that account's now. Sending records an `announcement_sent` event with
404-
who sent it and to how many accounts. Its emails go out on a delivery channel of
403+
address another account owns, an active one or one being deleted. Sending
404+
records an `announcement_sent` event with who sent it and to how many accounts. Its emails go out on a delivery channel of
405405
their own, so sending one to every account holds back no verification or
406406
recovery link (see
407407
[announcements](../architecture/delivery-queue.md#announcements)).

0 commit comments

Comments
 (0)