postie-0.1.0.0

Safe HaskellNone

Web.Postie.Settings

Synopsis

Documentation

data Settings Source

Settings to configure posties behaviour.

Constructors

Settings 

Fields

settingsPort :: PortID

Port postie will run on.

settingsTimeout :: Int

Timeout for connections in seconds

settingsMaxDataSize :: Int

Maximal size of incoming mail data

settingsHost :: Maybe HostName

Hostname which is shown in posties greeting.

settingsTLS :: Maybe TLSSettings

TLS settings if you wish to secure connections.

settingsOnException :: SomeException -> IO ()

Exception handler (default is defaultExceptionHandler)

settingsOnOpen :: IO ()

Action will be performed when connection has been opened.

settingsOnClose :: IO ()

Action will be performed when connection has been closed.

settingsBeforeMainLoop :: IO ()

Action will be performed before main processing begins.

settingsOnStartTLS :: IO ()
 
settingsOnHello :: ByteString -> IO HandlerResponse
 
settingsOnMailFrom :: Address -> IO HandlerResponse
 
settingsOnRecipient :: Address -> IO HandlerResponse
 

data TLSSettings Source

Constructors

TLSSettings