postie-0.6.0.2: SMTP server library to receive emails from within Haskell programs.
Safe HaskellNone
LanguageHaskell2010

Network.Mail.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 

type Application = Mail -> IO HandlerResponse Source #

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