pub async fn list_folder<T: AsyncRead + AsyncWrite + Unpin>(
client: &mut MapClient<T>,
folder: Folder,
template: &ListMessagesFilter,
) -> Result<Vec<MessageEntry>>Expand description
Lists folder, paging at 1024 entries per request and accumulating across pages.
template carries any device-side filter (currently just read_status) applied to every
page; its max_count/offset are ignored โ this function owns pagination. Listing only โ no
bodies are fetched, so this is cheap relative to fetch_folder and is what the live
threads aggregation uses. Pure device read: no store access. Returns entries in device
listing order.
ยงErrors
Returns an error if any MAP set_folder/list_messages operation fails.