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


Home | Packages | Files | Procedures | Classes | Keywords | External packages


Written by
Andreas Kupries
Description
Sequencer for retrieval of messages.
Keywords
POP3, RETR command

Class 'pop3RetrSeq'

Superclasses
pop3Sequencer
Options
msg, use-top
Membervariables
message
Methods
GetMessage, GotRetrData, GotRetrResponse, RetrTry, pop3RetrSeq

-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.

message
Used as transient storage for the incoming message.

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: lineText 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: lineText 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.


Generated by AutoDoc 2.1 at 02/20/1999, invoked by Andreas Kupries