Module Smailparse (.ml)

module Smailparse: sig .. end
Parsing of e-mail messages, including attachments.
Author(s): Xavier Leroy
Version: 1.0
Mail.Parse

type message = {
   headers :(string * string) list;
   body :string;
   parts :message list;
}
The type of parsed e-mail messages.
val parse_message : string -> message
Parse the given textual message and return its structure.
val header : string -> message -> string
header h msg returns the contents of header named h in message msg, or the empty string if this header is missing. Remember that header names are lowercased and include the final :, e.g. subject:.