| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Network.Email.Header.Parser
Description
Header parsers. Most exported parsers (with the exception of fws,
cfws, and unstructured) are for parsing structured header fields.
They expect no leading space and will eat an trailing white space.
Synopsis
- fws :: Parser ()
- cfws :: Parser ()
- lexeme :: Parser a -> Parser a
- symbol :: Char -> Parser Char
- commaSep :: Parser a -> Parser [a]
- dateTime :: Parser ZonedTime
- address :: Parser Address
- mailbox :: Parser Mailbox
- mailboxList :: Parser [Mailbox]
- recipient :: Parser Recipient
- recipientList :: Parser [Recipient]
- messageID :: Parser MessageID
- messageIDList :: Parser [MessageID]
- phrase :: Parser Text
- phraseList :: Parser [Text]
- unstructured :: Parser Text
- mimeVersion :: Parser (Int, Int)
- contentType :: Parser (MimeType, Parameters)
- contentTransferEncoding :: Parser (CI ByteString)
Whitespace
Combinators
Date and time
dateTime :: Parser ZonedTime Source #
Parse a date and time. TODO: non-numeric timezones (such as "PDT") are considered equivalent to UTC time.
Addresses
Message IDs
messageIDList :: Parser [MessageID] Source #
Parse a list of message identifiers.
Text
phrase :: Parser Text Source #
Parse a phrase. Adjacent encoded words are concatenated. White space is reduced to a single space, except when quoted or part of an encoded word.
phraseList :: Parser [Text] Source #
Parse a comma-separated list of phrases.
unstructured :: Parser Text Source #
Parse unstructured text. Adjacent encoded words are concatenated. White space is reduced to a single space, except when part of an encoded word.
MIME
contentType :: Parser (MimeType, Parameters) Source #
Parse the content type.
contentTransferEncoding :: Parser (CI ByteString) Source #
Parse the content transfer encoding.