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

Description (short)
Mailbox management, interface used by a POP3 server (see pop3Server).
Written by
Andreas Kupries
Description
File- and directorybased mailbox management. Currently ussed by the small scale pop3 server application (apps/popsy).
Keywords
Mailbox management, pop3 server

Class 'popServerStorageBase'

Description
This class defines the interface used by instances of pop3Server to access the storage subsystem containing all mails retrievable by the users of the server.
Methods
public
dele (mbox msgList)
lock (mbox)
size (mbox msgId)
stat (mbox)
transfer (args)
unlock (mbox)

Methods

dele (mbox msgList)

Abstract method, deletes the specified messages from the mailbox.
Argument: mbox Handle of the mailbox to modify.
Argument: msgList List of message ids.

lock (mbox)

Abstract method, locks the specified mailbox for exclusive access by a single connection.
Argument: mbox Handle of the mailbox to lock.
Returns: 1 if the mailbox was locked sucessfully, 0 else.

size (mbox msgId)

Abstract method, determines the size of the given mail in the specified mailbox, in bytes.
Argument: mbox Handle of the mailbox to
Argument: msgId Numerical index of the message to look at.
Returns: size of the message in bytes.

stat (mbox)

Abstract method, determines the number of mails in the specified mailbox.
Argument: mbox Handle of the mailbox to look at.
Returns: The number of messages in the mailbox

transfer (args)

Abstract method, starts a (partial) transfer of the given message. Configured via a list of option/value-pairs, followed by the mailbox to look at, the numerical id of the message to transfer and the channel to sent the mail to, in this order.
Argument: args List of option/value-pairs, followed by 3 arguments (explained in the method description). Recognized options are '-done' and '-lines'.
The value of -done is interpreted as a script to call after completion of the transfer. Its specification is required.
On the other hand, specification of -lines is optional. It is interpreted as the number of lines to transfer, beyond the usual message header. The complete message is transfered if it is not specified.

unlock (mbox)

Abstract method, revokes the lock on the specified mailbox.
Argument: mbox Handle of the mailbox to unlock


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