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


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


Written by
Andreas Kupries
Description
Interface used by the POP3 client core (pop3Client) to store incoming messages.
Keywords
pop3 client

Class 'popClientStorageBase'

Description
This class defines the interface used by instances of pop3Client to store retrieved mails locally.
Methods
Done, store, storeMessage

Done (command fail msg)

This method can be used by derived classes to signal the completion of the storage. It will execute the defined callback with the appropriate arguments.
Argument: commandThe script evaluate. Allowed to be empty, nothing is done in that case. Gets either 'error' or 'done' as first argument. In case of an 'error' msg is given to as well.
Argument: failBoolean value. True signal unsucessful completion of the storing process.
Argument: msg (= {})The error text to add as 2nd argument to command.

store (args)

An option based interface to storeMessage. The script to evaluate after completion of storing is given as argument to the option '-command'. The message is the first non-option argument.
Argument: argsA list of option/value-pairs, followed by the message to store. Only '-command' is recognized.

storeMessage (command message)

Abstract method. Must be overidden by derived classes to implement the actual process of storing a message.
Argument: commandThe script evaluate after completion of the process (use Done to accomplish this). Allowed to be empty, nothing is done in that case. Gets either 'error' or 'done' as first argument.
Argument: messageThe text of the message to store.


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