File 'net/pop3/retr.cls' (part of 'Pool_Net')

Description (short)
Delete message on pop server (RETR)
Written by
Andreas Kupries
Description
Sequencer for retrieval of messages.
Keywords
POP3, RETR command

Class 'pop3RetrSeq'

Superclasses
pop3Sequencer
Options
msg
use-top
Methods
public
GetMessage ()
GotRetrData (line)
GotRetrResponse (line)
RetrTry ()
pop3RetrSeq ()
Membervariables
public
message

Options

-msg
The numerical index of the message to delete at the server.
-use-top
A boolean flag. Setting it to TRUE causes the sequencer to use the command 'TOP x 0' instead of 'RETR x' to retrieve the message. The first pop server of my provider didn't recognize RETR, but this special command. Maybe some other people have to deal with such a weird beast too.
default value: 0

Methods

GetMessage ()

Accessor method.
Returns: is the text of the received message.

GotRetrData (line)

Called for each line of the incoming mail. Stops the sequencer upon detection of the end-of-message marker (single dot on a line by itself), or appends the line to its internal store.
Argument: line Text of response

GotRetrResponse (line)

Called after pop3 demon responded to the RETR command. An error aborts the operation, else we start reading the incoming message, which followed the server response immediately.
Argument: line Text of response

RetrTry ()

The first action taken after the construction of the sequencer completes. Writes out the retrieval command to the pop3 server, then waits for its response.

pop3RetrSeq ()

Constructor.


Membervariables

message
Used as transient storage for the incoming message.

Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries