postie-0.1.0.0

Safe HaskellNone

Web.Postie.Types

Synopsis

Documentation

data HandlerResponse Source

Handler response indicating validity of email transaction.

Constructors

Accepted

Accepted, allow further processing.

Rejected

Rejected, stop transaction.

data Mail Source

Received email

Constructors

Mail 

Fields

mailSender :: Address

Sender of email

mailRecipients :: [Address]

Recipients of email

mailBody :: Producer ByteString IO ()

Producer of mail content

type Application = Mail -> IO HandlerResponseSource

Application which receives Mails from postie