gleambox
Types
pub type MBox {
MBox(headers: Dict(String, String), body: String)
}
Constructors
-
MBox(headers: Dict(String, String), body: String)
pub type Mail {
Mail(
from: String,
to: List(String),
subject: String,
message_id: String,
date: Time,
body: String,
headers: Dict(String, String),
)
InvalidMail
}
Constructors
-
Mail( from: String, to: List(String), subject: String, message_id: String, date: Time, body: String, headers: Dict(String, String), )
-
InvalidMail
Functions
pub fn get_header(mbox: MBox, key: String) -> Result(String, Nil)
pub fn get_headers(mbox: MBox) -> Dict(String, String)
pub fn get_message_id(mbox: MBox) -> Result(String, Nil)
pub fn get_references(mbox: MBox) -> List(String)
pub fn get_subject(mbox: MBox) -> Result(String, Nil)
pub fn maildir_iterator(mbox_path: String) -> Iterator(String)