Stability | experimental |
---|---|
Maintainer | gershomb@gmail.com |
Safe Haskell | None |
Reads and writes mboxrd files as per http://www.qmail.org/man/man5/mbox.html.
- type MBox = [Message]
- data Message = Message {}
- type Header = (Text, Text)
- parseMBox :: Text -> MBox
- parseForward :: Message -> Message
- parseDateHeader :: Text -> Maybe UTCTime
- showMessage :: Message -> Text
- showMBox :: MBox -> Text
- getHeader :: (Header -> Bool) -> Message -> Text
- isID :: Header -> Bool
- isDate :: Header -> Bool
Documentation
parseForward :: Message -> MessageSource
Attempts to retrieve the contents of a forwarded message from an enclosing message.
parseDateHeader :: Text -> Maybe UTCTimeSource
Reads a date header as a UTCTime
showMessage :: Message -> TextSource
Renders an individual message into Text.