ident
All repositories: gitoria
2.0 KB
# ident mission 011 — ident#7: delivery — daily mail at 17:00 in the user's time zone, urgent at onceTicket: https://tickets.worldapi.org/ident.worldapi.org/7 (read it + CONCEPT.md "Notifications": default channel = thedaily mail at 17:00 in the user's time zone with all pending notifications; urgent = immediately by push if a push deviceis registered, else email; always within the user's switches; ident does not ship its own zone rules — use Hybriel'stime zones, hybriel#5 done: read plugins/time for the API).Scope:- The user's time zone: stored per account; default taken from the browser at sign-in/first visit (IANA name), changeableon the account page (a select of zones). No zone yet → Europe/Vienna? NO: then the server's default is UTC and theaccount page asks once — decide the smallest sensible thing and say so in the report.- Daily digest: a job that, per user whose local time just passed 17:00 and who has pending default-channelnotifications, sends ONE mail listing them (name, app, text, action link) and marks them delivered; never twice per day(survives a restart: store the last sent local date). DST change days handled by Hybriel's zone rules.- Urgent: push devices do not exist yet (ident#8) → urgent = mail at once, through the same switches; leave a clear hookfor push.- Mail goes through ident's existing mail code (plugins/smtp, lib/mail.hl); tests use the gate's mail sink, never real mail.Pure Hybriel, no JS. Code order rules. Proof: gate checks with a fake clock (like calendar's GATE_CLOCK or a server-sideclock override env for tests only): users in Vienna, New York, Tokyo get their digest at their 17:00, once; a DST day;urgent arrives at once; a user who switched mail off gets nothing; pending ones are not lost. All ident gates green.Real-data copy (newest /media/STORAGE/deploy-backups/ident.worldapi.org/*.tgz): migration of existing accounts (no zone)works, nothing is sent on the copy except to the sink.Worktree /media/STORAGE/projects/ident-w11 (branch w11), ports 8700–8719. Report reports/011-daily-mail-urgent.md.
Branches
Latest commits
- 0f6d1592Merge branch 'f18b-shell-session' into mainIdent
- 19868218|||PR ident#39 shell reads its session member instead of a cross-file emitmre
- 5d1b3fedMerge branch 'v61-day61' into mainIdent
- 83faeb15|||PR ident: vendor Hybriel day61mre
- b2572b34Merge branch 'v59-day59' into mainIdent
- 67cf016d|||PR ident: vendor Hybriel day59mre
- 600c043dMerge branch 'v58-day58' into mainIdent
- 365f8c80|||PR ident: vendor Hybriel day58mre
- 585126e5Merge branch 'f16-setf' into mainIdent
- 953bf03a|||PR ident setF mirror dropped (hybriel#370)mre
- a1419d9cMerge branch 'f15-navigate' into mainIdent
- 3b3e451f|||PR ident#36 navigate to the app instead of location.assignmre
- e36f4516Merge branch 'f14-online' into mainIdent
- 2c5eac91|||PR ident#38 online state without probe timermre
- bf1980f2Merge branch 'v56-day56' into mainIdent
- 62ae0adf|||PR ident: vendor Hybriel day56mre
- 0d18abc4Merge branch 'f13-avatar' into mainIdent
- 2a99730a|||PR ident#37 avatar in hlmre
- fa4ed25bMerge branch 'f11-upsert' into mainIdent
- 8f3d9bc9|||PR ident#42 keyed upsert and removemre