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

Description (short)
Storage facility, holds incoming mails in memory
Written by
Andreas Kupries
Description
Storage facility, holds incoming mails in memory
Keywords
storage facility

Class 'memStorage'

Description
Storage system usable by the pop client in pop3Client. Incoming mails are stored in memory, in the array mem.
Superclasses
popClientStorageBase
Methods
public
clear ()
messages ()
storeMessage (command message)
stored ()
Membervariables
public
nextId
mem

Methods

clear ()

Removes all stored messages from memory

messages ()

Query the memory storage facility for messages stored in it.
Returns: A list containing the messages stored in the facility, and their handles, in a format suitable to 'array set'.

storeMessage (command message)

Overrides popClientStorageBase:storeMessage
Store the given message into our internal array.
Argument: command The 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: message The text of the message to store.

stored ()

Query the memory storage facility for messages stored in it.
Returns: The number of messages stored in the facility


Membervariables

nextId
The next index to use for mem.
initial value: 1
mem
The array containing the incoming messages.

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