class POPSession
- POPSession
- Session
- Reference
- Object
Defined in:
devmail/pop_session.crConstructors
Instance Method Summary
- 
        #capa
        
          Show the client what we can do 
- 
        #dele(message : Symbol | Int)
        
          Deletes message 
- 
        #greet
        
          Send a greeting to client 
- 
        #list(message_id)
        
          Show list of messages 
- 
        #message_number(full_data)
        
          Returns message number parsed from full_data: 
- #message_uid(message : String)
- 
        #pass(full_data)
        
          Authenticate client 
- 
        #process_command(command : String, full_data : String)
        
          Process command 
- 
        #quit
        
          Quits 
- 
        #respond(status : Bool, message : String)
        
          Respond to client with a POP3 prefix (+OK or -ERR) 
- 
        #retr(message_id)
        
          Retreives message 
- 
        #stat
        
          Shows total number of messages and size 
- 
        #top(full_data)
        
          Display headers of message 
- 
        #uidl(message_id)
        
          Shows list of message uid 
- 
        #user(full_data)
        
          Accept username 
Instance methods inherited from class Session
  
  
    
      greet
    greet, 
    
  
    
      process_command(command : String, full_data : String)
    process_command, 
    
  
    
      respond(text : String)
    respond
    
  
    
  Constructor methods inherited from class Session
  
  
    
      new(client : TCPSocket)
    new
    
  
    
  
    
    
    
  
    
    
    
  
Constructor Detail
Instance Method Detail
        
        def list(message_id)
        #
      
      
        Show list of messages
When a message ID is specified only list the size of that message
        
        def 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
        
        def uidl(message_id)
        #
      
      
        Shows list of message uid
When a message id is specified only list the uid of that message