Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- connectPop3Port :: String -> PortNumber -> IO POP3Connection
- connectPop3 :: String -> IO POP3Connection
- connectStream :: BSStream -> IO POP3Connection
- sendCommand :: POP3Connection -> Command -> IO (Response, ByteString)
- closePop3 :: POP3Connection -> IO ()
- user :: POP3Connection -> String -> IO ()
- pass :: POP3Connection -> String -> IO ()
- userPass :: POP3Connection -> UserName -> Password -> IO ()
- apop :: POP3Connection -> String -> String -> IO ()
- auth :: POP3Connection -> AuthType -> UserName -> Password -> IO ()
- stat :: POP3Connection -> IO (Int, Int)
- dele :: POP3Connection -> Int -> IO ()
- retr :: POP3Connection -> Int -> IO ByteString
- top :: POP3Connection -> Int -> Int -> IO ByteString
- rset :: POP3Connection -> IO ()
- allList :: POP3Connection -> IO [(Int, Int)]
- list :: POP3Connection -> Int -> IO Int
- allUIDLs :: POP3Connection -> IO [(Int, ByteString)]
- uidl :: POP3Connection -> Int -> IO ByteString
- doPop3Port :: String -> PortNumber -> (POP3Connection -> IO a) -> IO a
- doPop3 :: String -> (POP3Connection -> IO a) -> IO a
- doPop3Stream :: BSStream -> (POP3Connection -> IO b) -> IO b
- data AuthType
Establishing Connection
connectPop3Port :: String -> PortNumber -> IO POP3Connection Source #
connecting to the pop3 server specified by the hostname and port number
connectPop3 :: String -> IO POP3Connection Source #
connecting to the pop3 server specified by the hostname. 110 is used for the port number.
connectStream :: BSStream -> IO POP3Connection Source #
connecting to the pop3 server via a stream
Send Command
sendCommand :: POP3Connection -> Command -> IO (Response, ByteString) Source #
sendCommand sends a pop3 command via a pop3 connection. This action is too generic. Use more specific actions
More Specific Operations
closePop3 :: POP3Connection -> IO () Source #
retr :: POP3Connection -> Int -> IO ByteString Source #
top :: POP3Connection -> Int -> Int -> IO ByteString Source #
rset :: POP3Connection -> IO () Source #
allUIDLs :: POP3Connection -> IO [(Int, ByteString)] Source #
uidl :: POP3Connection -> Int -> IO ByteString Source #
Other Useful Operations
doPop3Port :: String -> PortNumber -> (POP3Connection -> IO a) -> IO a Source #
doPop3Stream :: BSStream -> (POP3Connection -> IO b) -> IO b Source #
Other types
Authorization types supported by the RFC5954