10 POP3: Reading Mail
tools for the Post Office Protocol version 3 [RFC977
Once a connection to a POP-3 server has been established, its state is
stored in a communicator
instance, and other procedures take
instances as an argument.
Connects to server at port-number.
Disconnects communicator from the server, and sets
communicator’s state to 'disconnected.
Authenticates using user and passwd. If
authentication is successful, communicator’s state is set to
Returns the number of messages and the number of octets in the
Given a message number, returns a list of message-header lines and
list of message-body lines.
Given a message number, returns a list of message-header lines.
Given a message number, returns a list of message-body lines.
Deletes the specified message.
Gets the server’s unique id for a particular message.
Gets a list of unique id’s from the server for all the messages in the
mailbox. The car
of each item in the result list is the
message number, and the cdr
of each item is the message’s
Takes a header field’s tag and returns a regexp to match the field
Given a list of header lines and of desired regexps, returns the
header lines that match any of the desireds.
The supertype of all POP3 exceptions.
Raised when a connection to a server cannot be established.
Raised if the username is rejected.
Raised if the password is rejected.
Raised when the communicator is not in transaction mode.
Raised when the server does not respond with headers for a message as
Raised when the client specifies an illegal message number.
Raised when the server is unable to delete a message.
Raised when the server does not gracefully disconnect.
Raised when the server produces a malformed response.
10.2 Example Session
10.3 POP3 Unit
pop3@ and pop3^ are deprecated.
They exist for backward-compatibility and will likely be removed in
the future. New code should use the net/pop3 module.
Imports nothing, exports pop3^
10.4 POP3 Signature
Includes everything exported by the net/pop3 module.