Portability | portable |
---|---|
Stability | stable |
Maintainer | mukai@jmuk.org |
POP3 client implementation
- data Command
- data BSStream s => POP3Connection s = POP3C !s !String
- data Response
- connectPop3Port :: String -> PortNumber -> IO (POP3Connection Handle)
- connectPop3 :: String -> IO (POP3Connection Handle)
- connectStream :: BSStream s => s -> IO (POP3Connection s)
- sendCommand :: BSStream s => POP3Connection s -> Command -> IO (Response, ByteString)
- closePop3 :: BSStream s => POP3Connection s -> IO ()
- user :: BSStream s => POP3Connection s -> String -> IO ()
- pass :: BSStream s => POP3Connection s -> String -> IO ()
- userPass :: BSStream s => POP3Connection s -> UserName -> Password -> IO ()
- apop :: BSStream s => POP3Connection s -> String -> String -> IO ()
- auth :: BSStream s => POP3Connection s -> AuthType -> UserName -> Password -> IO ()
- stat :: BSStream s => POP3Connection s -> IO (Int, Int)
- dele :: BSStream s => POP3Connection s -> Int -> IO ()
- retr :: BSStream s => POP3Connection s -> Int -> IO ByteString
- top :: BSStream s => POP3Connection s -> Int -> Int -> IO ByteString
- rset :: BSStream s => POP3Connection s -> IO ()
- allList :: BSStream s => POP3Connection s -> IO [(Int, Int)]
- list :: BSStream s => POP3Connection s -> Int -> IO Int
- allUIDLs :: BSStream s => POP3Connection s -> IO [(Int, ByteString)]
- uidl :: BSStream s => POP3Connection s -> Int -> IO ByteString
- doPop3Port :: String -> PortNumber -> (POP3Connection Handle -> IO a) -> IO a
- doPop3 :: String -> (POP3Connection Handle -> IO a) -> IO a
- doPop3Stream :: BSStream s => s -> (POP3Connection s -> IO b) -> IO b
Types
data BSStream s => POP3Connection s Source
Establishing Connection
connectPop3Port :: String -> PortNumber -> IO (POP3Connection Handle)Source
connecting to the pop3 server specified by the hostname and port number
connectPop3 :: String -> IO (POP3Connection Handle)Source
connecting to the pop3 server specified by the hostname. 110 is used for the port number.
connectStream :: BSStream s => s -> IO (POP3Connection s)Source
connecting to the pop3 server via a stream
Send Command
sendCommand :: BSStream s => POP3Connection s -> 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
retr :: BSStream s => POP3Connection s -> Int -> IO ByteStringSource
top :: BSStream s => POP3Connection s -> Int -> Int -> IO ByteStringSource
allUIDLs :: BSStream s => POP3Connection s -> IO [(Int, ByteString)]Source
uidl :: BSStream s => POP3Connection s -> Int -> IO ByteStringSource
Other Useful Operations
doPop3Port :: String -> PortNumber -> (POP3Connection Handle -> IO a) -> IO aSource
doPop3Stream :: BSStream s => s -> (POP3Connection s -> IO b) -> IO bSource