gleambox

Types

pub type MBox {
  MBox(headers: Dict(String, String), body: String)
}

Constructors

  • MBox(headers: Dict(String, String), body: String)

Functions

pub fn get_body(mbox: MBox) -> String
pub fn get_date(mbox: MBox) -> Result(String, Nil)
pub fn get_from(mbox: MBox) -> Result(String, Nil)
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 get_to(mbox: MBox) -> Result(String, Nil)
pub fn parse(mboxcontents: String) -> MBox
Search Document