WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

Safe HaskellSafe-Infered

WASH.Mail.MailParser

Documentation

parseMessageFromFile :: String -> IO (Either ParseError RawMessage)Source

parseMessageFromString :: String -> Either ParseError RawMessageSource

parseDateTimeFromString :: [Char] -> Either ParseError DateTime2822Source

data RawMessage Source

Constructors

RawMessage 

Fields

rawHeaders :: [Header]
 
rawLines :: [String]
 

Instances

Show RawMessage 

lexeme :: ParsecT String () Identity b -> ParsecT String () Identity bSource

literalString :: ParsecT String u Identity [Char]Source

no_ws_ctl :: Parser CharSource

p_text :: ParsecT String u Identity CharSource

quoted_pair :: ParsecT String u Identity CharSource

p_parameter :: ParsecT String () Identity ([Char], [Char])Source

p_contentType :: ParsecT String () Identity ContentTypeSource

p_contentDisposition :: ParsecT String () Identity ContentDispositionSource

p_contentID :: ParsecT String () Identity ContentIDSource

p_contentDescription :: ParsecT String () Identity ContentDescriptionSource

header :: ParsecT String () Identity HeaderSource

extraHeaderLine :: ParsecT String () Identity [Char]Source

lineString :: ParsecT String u Identity [Char]Source

headerBodySep :: ParsecT [Char] u Identity ()Source

body :: ParsecT String () Identity [[Char]]Source

message :: ParsecT String () Identity RawMessageSource

lookupHeader :: String -> Message -> Maybe StringSource

lookupRawHeader :: String -> RawMessage -> Maybe StringSource

lookupInHeaders :: String -> [Header] -> Maybe StringSource

parseHeader :: RawMessage -> String -> a -> Parsec String () a -> aSource

splitBody :: [Char] -> [[Char]] -> [RawMessage]Source

decode :: ContentTransferEncoding -> String -> StringSource

parseSuccessfully :: Stream s Identity t => Parsec s () a -> SourceName -> s -> aSource