module Network.HaskellNet.IMAP.SSL
(
connectIMAPSSL
, connectIMAPSSLWithSettings
, Settings(..)
, defaultSettingsIMAPSSL
, module Network.HaskellNet.IMAP
) where
import Network.HaskellNet.IMAP.Connection
import Network.HaskellNet.IMAP
import Network.HaskellNet.SSL
import Network.HaskellNet.SSL.Internal
connectIMAPSSL :: String -> IO IMAPConnection
connectIMAPSSL :: String -> IO IMAPConnection
connectIMAPSSL String
hostname = String -> Settings -> IO IMAPConnection
connectIMAPSSLWithSettings String
hostname Settings
defaultSettingsIMAPSSL
connectIMAPSSLWithSettings :: String -> Settings -> IO IMAPConnection
connectIMAPSSLWithSettings :: String -> Settings -> IO IMAPConnection
connectIMAPSSLWithSettings String
hostname Settings
cfg = String -> Settings -> IO BSStream
connectSSL String
hostname Settings
cfg IO BSStream -> (BSStream -> IO IMAPConnection) -> IO IMAPConnection
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= BSStream -> IO IMAPConnection
connectStream
defaultSettingsIMAPSSL :: Settings
defaultSettingsIMAPSSL :: Settings
defaultSettingsIMAPSSL = PortNumber -> Settings
defaultSettingsWithPort PortNumber
993