emailparse-0.2.0.8: An email parser that will parse everything

Safe HaskellNone
LanguageHaskell2010

Network.Mail.Parse.Types

Contents

Synopsis

Documentation

type ErrorMessage = Text Source #

data EmailMessage Source #

Constructors

EmailMessage 

Instances

Eq EmailMessage Source # 
Show EmailMessage Source # 
Generic EmailMessage Source # 

Associated Types

type Rep EmailMessage :: * -> * #

type Rep EmailMessage Source # 
type Rep EmailMessage = D1 * (MetaData "EmailMessage" "Network.Mail.Parse.Types" "emailparse-0.2.0.8-AKmMtTqk9VyC0J5KrYb6je" False) (C1 * (MetaCons "EmailMessage" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "emailHeaders") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Header])) (S1 * (MetaSel (Just Symbol "emailBodies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [EmailBody]))))

type MessageId = Text Source #

data Header Source #

Instances

Eq Header Source # 

Methods

(==) :: Header -> Header -> Bool #

(/=) :: Header -> Header -> Bool #

Show Header Source # 
Generic Header Source # 

Associated Types

type Rep Header :: * -> * #

Methods

from :: Header -> Rep Header x #

to :: Rep Header x -> Header #

type Rep Header Source # 
type Rep Header = D1 * (MetaData "Header" "Network.Mail.Parse.Types" "emailparse-0.2.0.8-AKmMtTqk9VyC0J5KrYb6je" False) ((:+:) * ((:+:) * ((:+:) * (C1 * (MetaCons "Date" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ZonedTime))) ((:+:) * (C1 * (MetaCons "From" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * EmailAddress))) (C1 * (MetaCons "ReplyTo" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * EmailAddress))))) ((:+:) * (C1 * (MetaCons "To" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [EmailAddress]))) ((:+:) * (C1 * (MetaCons "CC" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [EmailAddress]))) (C1 * (MetaCons "BCC" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [EmailAddress])))))) ((:+:) * ((:+:) * (C1 * (MetaCons "MessageId" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MessageId))) ((:+:) * (C1 * (MetaCons "InReplyTo" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * MessageId))) (C1 * (MetaCons "References" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [MessageId]))))) ((:+:) * ((:+:) * (C1 * (MetaCons "Subject" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text))) (C1 * (MetaCons "Comments" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))) ((:+:) * (C1 * (MetaCons "Keywords" PrefixI False) (S1 * (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Text]))) (C1 * (MetaCons "Header" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "headerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "headerContents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))))

data EmailAddress Source #

Constructors

EmailAddress 

Fields

Instances

Eq EmailAddress Source # 
Show EmailAddress Source # 
Generic EmailAddress Source # 

Associated Types

type Rep EmailAddress :: * -> * #

type Rep EmailAddress Source # 
type Rep EmailAddress = D1 * (MetaData "EmailAddress" "Network.Mail.Parse.Types" "emailparse-0.2.0.8-AKmMtTqk9VyC0J5KrYb6je" False) (C1 * (MetaCons "EmailAddress" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "emailAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "emailLabel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text)))))

data EmailBody Source #

An email body contains the contents of an email part up until the boundary marker.

Constructors

MessageBody EmailMessage

Body of a MIME message part. Contains headers

TextBody !Text

If the message contained no MIME information, it's probably just some text. Best guess decoding into UTF-8 is applied

Attachment

Attachment is part of a MIME message, but a rather special one. It's decoded from whatever the transfer encoding was applied and left as a raw sollection of bytes for your enjoyment

Fields

Orphan instances