code wiki / _hdl_build / nx_email_webmail_gate.nx

nx_email_webmail_gate.nx

buildroot/runtime/_hdl_build/nx_email_webmail_gate.nx

6309 B157 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic email
docsdependenciesstructsconstsfunctions

about

nx_email_webmail_gate.nx -- LIVE: the webmail UI over a real HTTP socket. Seeds the R3 store with 2 messages for self@jasonewest.com, then fork: parent = the webmail server (nx_webmail_serve_conn over accept), child = a real HTTP/1.1 client making 3 GETs: 1. GET / -> HTML lists BOTH subjects ("Welcome" + "Second Note") 2. GET /del?n=0 -> redraw NO LONGER shows "Welcome" (soft-deleted) 3. GET / -> still no "Welcome", still "Second Note" Then the parent verifies the store: message #0 tombstoned, #1 live. Evidence -> knowledge/status/webmail.log (WEBMAILGATE ... verdict=GREEN) license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_email_webmail.nx nx_connect.nx nx_syscalls.nx nx_email_webmail_gate.nx

imports: nx_email_webmail.nxnx_connect.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mkdir sys_openat_wr sys_close nx_mbox_append nx_mbox_count sys_mmap ss_get_cap sys_mmap ↻ ss_scan_cap sys_mmap ↻ ss_manifest_cap ss_manifest_file_cap ss_scan_seglist ss_len sys_mmap ↻ ss_cat ss_readall ss_r32 mbox_atoi sys_mmap ↻ mbox_key mbox_itoa sys_mmap ↻ mbox_itoa ↻ ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ↻ ss_commit ss_segid_ok sys_mmap ↻ ss_cat ↻ ss_catn sys_mmap ↻ sys_write ss_write_seg

structs

none

consts

17const WM_PORT: i64 = 0x2555
18const WM_LOG: *u8 = "knowledge/status/webmail.log"
19const WM_PREFIX: *u8 = "knowledge/status/wmail/"
20const WM_BOX: *u8 = "self@jasonewest.com"

functions

22func g_addr(out: *u8, port: i64) -> i64
called by 1: main
30func g_writes(fd: i64, s: *u8) -> i64
called by 2: http_getmain calls 1: sys_write
36func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: containsmain
37func contains(hay: *u8, hlen: i64, needle: *u8) -> i64
called by 1: g_run_client calls 1: slen
49func http_get(addr: *u8, path: *u8, out: *u8, cap: i64) -> i64
66func g_run_client(addr: *u8) -> i64
called by 1: main calls 3: sys_mmaphttp_getcontains
88func main() -> i64