Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Settings = Settings {
- settingsPort :: PortNumber
- settingsTimeout :: Int
- settingsMaxDataSize :: Int
- settingsHost :: Maybe HostName
- settingsTLS :: Maybe TLSSettings
- settingsRequireAuth :: Bool
- settingsOnException :: Maybe SessionID -> SomeException -> IO ()
- settingsBeforeMainLoop :: IO ()
- settingsOnOpen :: SessionID -> SockAddr -> IO ()
- settingsOnClose :: SessionID -> IO ()
- settingsOnStartTLS :: SessionID -> IO ()
- settingsOnHello :: SessionID -> ByteString -> IO HandlerResponse
- settingsOnAuth :: SessionID -> ByteString -> IO HandlerResponse
- settingsOnMailFrom :: SessionID -> Address -> IO HandlerResponse
- settingsOnRecipient :: SessionID -> Address -> IO HandlerResponse
- data TLSSettings = TLSSettings {
- certFile :: FilePath
- keyFile :: FilePath
- security :: StartTLSPolicy
- tlsLogging :: Logging
- tlsAllowedVersions :: [Version]
- tlsCiphers :: [Cipher]
- data StartTLSPolicy
- settingsStartTLSPolicy :: Settings -> Maybe StartTLSPolicy
- defaultExceptionHandler :: Maybe SessionID -> SomeException -> IO ()
- mkServerParams :: TLSSettings -> IO ServerParams
- def :: Default a => a
Documentation
Settings to configure posties behaviour.
Settings | |
|
data TLSSettings Source #
Settings for TLS handling
TLSSettings | |
|
Instances
Default TLSSettings Source # | |
Defined in Network.Mail.Postie.Settings def :: TLSSettings # |
data StartTLSPolicy Source #
Connection security policy, either via STARTTLS command or on connection initiation.
AllowStartTLS | Allows clients to use STARTTLS command |
DemandStartTLS | Client needs to send STARTTLS command before issuing a mail transaction |
ConnectWithTLS | Negotiates a TSL context on connection startup. |
Instances
Eq StartTLSPolicy Source # | |
Defined in Network.Mail.Postie.Settings (==) :: StartTLSPolicy -> StartTLSPolicy -> Bool # (/=) :: StartTLSPolicy -> StartTLSPolicy -> Bool # | |
Show StartTLSPolicy Source # | |
Defined in Network.Mail.Postie.Settings showsPrec :: Int -> StartTLSPolicy -> ShowS # show :: StartTLSPolicy -> String # showList :: [StartTLSPolicy] -> ShowS # |
defaultExceptionHandler :: Maybe SessionID -> SomeException -> IO () Source #
reexport from Default class