Copyright | (c) Gershom Bazerman 2009 |
---|---|
License | BSD 3 Clause |
Maintainer | gershomb@gmail.com |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell98 |
Reads and writes mboxrd files as per http://www.qmail.org/man/man5/mbox.html.
This parser is written to be a streaming parser. Given a lazy source of data and a streaming consumer, you should be able to analyze arbitrary mbox files in constant space.
- type MBox = [Message]
- data Message = Message {}
- type Header = (String, String)
- parseMBox :: String -> MBox
- parseForward :: Message -> Message
- parseDateHeader :: String -> Maybe UTCTime
- showMessage :: Message -> String
- showMBox :: MBox -> String
- getHeader :: (Header -> Bool) -> Message -> [String]
- isID :: Header -> Bool
- isDate :: Header -> Bool
Documentation
parseForward :: Message -> Message Source #
Attempts to retrieve the contents of a forwarded message from an enclosing message.
showMessage :: Message -> String Source #
Renders an individual message into a String.