class

POPSession

Inherits Session < Reference < Object

Constructors

new(client : TCPSocket, store : Store)
Source

Instance methods

capa

Show the client what we can do

Source
dele(message : Symbol | Int)

Deletes message

Source
greet

Send a greeting to client

Source
list(message_id)

Show list of messages

When a message ID is specified only list the size of that message

Source
message_number(full_data)

Returns message number parsed from full_data:

  • No message number => :all
  • Message does not exists => :invalid
  • valid message number => some fixnum
Source
message_uid(message : String)
Source
pass(full_data)

Authenticate client

Source
process_command(command : String, full_data : String)

Process command

Source
quit

Quits

Source
respond(status : Bool, message : String)

Respond to client with a POP3 prefix (+OK or -ERR)

Source
retr(message_id)

Retreives message

Source
stat

Shows total number of messages and size

Source
top(full_data)

Display headers of message

Source
uidl(message_id)

Shows list of message uid

When a message id is specified only list the uid of that message

Source
user(full_data)

Accept username

Source