-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Read and write standard mailbox files.
--   
--   Read and write standard mailbox (mboxrd) files.
@package mbox
@version 0.1

-- | Reads and writes mboxrd files as per
--   http://www.qmail.org/man/man5/mbox.html.
module Data.MBox
type MBox = [Message]
data Message
Message :: String -> [Header] -> String -> Message
fromLine :: Message -> String
headers :: Message -> [Header]
body :: Message -> String
type Header = (String, String)

-- | Reads a string as an mbox file.
parseMBox :: String -> MBox

-- | Attempts to retrieve the contents of a forwarded message from an
--   enclosing message.
parseForward :: Message -> Message

-- | Reads a date header as a UTCTime
parseDateHeader :: String -> Maybe UTCTime

-- | Renders an individual message into a String.
showMessage :: Message -> String

-- | Renders an MBox into a String
showMBox :: MBox -> String
instance Read Message
instance Show Message
