Skip to main content

Module mailindex

Module mailindex 

Source
Expand description

Messages by their Message-ID, to follow mid: links (RFC 2392) from a task, a note or a budget line to the message itself.

Only headers are read, and what was read is kept in a cache file ($XDG_CACHE_HOME/sioul/mail-index.tsv), by the part of a Maildir name that never changes: a new look reads only the messages that came since.

Structs§

MailIndex
Messages by Message-ID (without angle brackets).
MailRef
One message, as a link shows it.
Threads
The conversations of an index: who cites each id, known or only cited (MailIndex::threads).

Functions§

bare_id
“abc@example.org”, “mid:abc@example.org” → “abc@example.org”.
headers_of 🔒
The headers of a message file: what comes before the first empty line, at most 256 KB.
message_files
Every message file under a Maildir root: its folders’ cur and new.
read_ref 🔒