mbox-0.2: Read and write standard mailbox files.

Stabilityexperimental
Maintainergershomb@gmail.com
Safe HaskellNone

Data.MBox.String

Description

Reads and writes mboxrd files as per http://www.qmail.org/man/man5/mbox.html.

Synopsis

Documentation

data Message Source

Constructors

Message 

Fields

fromLine :: String
 
headers :: [Header]
 
body :: String
 

Instances

parseMBox :: String -> MBoxSource

Reads a string as an mbox file.

parseForward :: Message -> MessageSource

Attempts to retrieve the contents of a forwarded message from an enclosing message.

parseDateHeader :: String -> Maybe UTCTimeSource

Reads a date header as a UTCTime

showMessage :: Message -> StringSource

Renders an individual message into a String.

showMBox :: MBox -> StringSource

Renders an MBox into a String

isID :: Header -> BoolSource

Header accessors