postie-0.2.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

mailRecipients :: [Address]

Recipients

mailBody :: Producer ByteString IO ()

Mail content

type Application = Mail -> IO HandlerResponseSource

Application which receives Mails from postie An Application has to fully consume the mailBody part of a mail, the behaviour is undefined if not.