pub fn drain_inbox(
workspace: &Path,
session: &str,
) -> Result<InboxDrain, SessionStoreError>Expand description
Drain an inbox: return live messages oldest-first, move expired and malformed files to the read archive, and reap aged read messages.
Callers inject live into the turn and then ack_mail each delivered
message; unacked messages redeliver on the next drain (at-least-once).