postie-0.3.2.0: SMTP server library to receive emails from within Haskell programs.

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

mailSessionID :: SessionID
 
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.