Skip to main content

Module fetch

Module fetch 

Source
Expand description

Shared device read, normalized to a store-agnostic FetchedMessage.

Lists a MAP folder and fetches each message body. Consumed by both the persist tail (sync::backfill_folder) and the live read path (live), so the list_messages + per-entry get_message loop exists once. No store access — the cursor that derives since_ms is read by the caller.

Structs§

FetchedMessage
A message read from the device and normalized, before it is persisted or rendered.

Functions§

fetch_folder
Lists folder and fetches each message body since since_ms.
list_folder
Lists folder, paging at 1024 entries per request and accumulating across pages.