HaskellNet-0.2.4: network related libraries such as POP3, SMTP, IMAP

Portabilityportable
Stabilitystable
Maintainermukai@jmuk.org

Network.HaskellNet.POP3

Contents

Description

POP3 client implementation

Synopsis

Types

data BSStream s => POP3Connection s Source

Constructors

POP3C !s !String

APOP key

data Response Source

Constructors

Ok 
Err 

Instances

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

Other Useful Operations

doPop3Stream :: BSStream s => s -> (POP3Connection s -> IO b) -> IO bSource