Passa al contenuto principale

3.4. Comando: operazioni

Le definizioni dei comandi che seguono sono riportate invariate nei blocchi di codice; ciascun blocco è preceduto da un breve commento in italiano.

comando: DELIVER​

Comando di tipo 1 (richiesta) che invia un messaggio a una mailbox. La risposta è ACKNOWLEDGE. L'argomento è una LIST di opzioni: una o più tra "REGULAR" (consegna normale), "FORWARD" (inoltro del messaggio), "GENDEL" (consegna generale) e altre opzioni che potranno essere definite in seguito.

type:  1

function: Sends message to a mailbox

reply: The reply is ACKNOWLEDGE

arguments: LIST ( options )

options: one or more of the following

"REGULAR" regular delivery

"FORWARD" message forwarding

"GENDEL" general delivery

other options which may be defined later

argument structure:

LIST ( LIST ( TEXT, ... ))

comando: ACKNOWLEDGE​

Comando di tipo 2 (risposta) a DELIVER. Nei suoi argomenti: tid è il tid del messaggio di origine; trail è lo stamp del comando deliver; answer è yes se la consegna è riuscita, no se vi è stato un errore di consegna; reasons vale "ok" se la risposta è yes, altrimenti, se è no, può essere uno tra "no such user", "no such host", "no such network", "address ambiguous" o una risposta simile; how-delivered contiene uno o più tra "FORWARD" (messaggio accettato per l'inoltro), "GENDEL" (accettato per la consegna generale), "ACCEPT" (accettato per la consegna normale), mentre altri tipi di consegna potranno essere definiti in seguito.

type:  2

function: reply to DELIVER

arguments: LIST ( tid, trail, answer, reasons, how-delivered )

tid: tid of the originating message

trail: the stamp from the deliver command

answer: yes if delivered successfully,
no if error in delivery.

reasons: if the answer is yes, the reason is "ok", if the answer
is no the reason could be one of "no such user", "no such host",
"no such network", "address ambiguous", or a similar response

how-delivered: one or more of the following:

"FORWARD" message was accepted for forwarding

"GENDEL" message was accepted for general delivery

"ACCEPT" message was accepted for normal delivery

other types of delivery may be defined later

argument structure:

LIST ( LIST ( INDEX, INTEGER ),
LIST ( INTEGER, ... ),
BOOLEAN,
LIST ( TEXT ),
LIST ( TEXT ))

comando: PROBE​

Comando di tipo 1 (richiesta) che verifica se la mailbox specificata (indicata nel campo mailbox del comando) esiste su un host. La risposta è RESPONSE. Non ha argomenti.

type:  1

function: finds out if specified mailbox (specified in mailbox of
the command) exists at a host

reply: the reply is RESPONSE

arguments: LIST ( --none-- )

argument structure:

LIST ( )

comando: RESPONSE​

Comando di tipo 2 (risposta) a PROBE. Nei suoi argomenti: tid e trail provengono dal PROBE di origine; answer è Yes se la mailbox è stata trovata, no se la mailbox non è valida. Se answer è yes il quarto argomento è address (un indirizzo specifico nella rete), se è no è reasons (il motivo per cui la mailbox non è valida). Tra i motivi possibili: la mailbox non esiste, la mailbox è piena, la mailbox è stata spostata e si indica un nuovo indirizzo da provare.

type:  2

function: reply to PROBE

arguments: LIST ( tid, trail, answer, address OR reasons )

tid: the tid which came from the originating PROBE

trail: the stamp which came from the originating PROBE

answer: Yes if mailbox found, or no for invalid mailbox

if answer is yes the fourth argument is address
if answer is no it is reasons

address: a specific address in the network

reasons: a reason why mailbox is invalid

Possible reasons include:

"Mailbox doesn't exist"

"Mailbox full"

"Mailbox has moved, try this new location", address

address is a new address to try

argument structure:

if answer is yes

LIST ( LIST ( INDEX, INTEGER ),
LIST ( INTEGER, ... ),
BOOLEAN,
PROPLIST )

if answer is no

LIST ( LIST ( INDEX, INTEGER ),
LIST ( INTEGER, ... ),
BOOLEAN,
LIST ( TEXT ))

comando: CANCEL​

Comando di tipo 3 (allarme) che interrompe la richiesta relativa alla transazione specificata. La risposta è CANCELED. L'argomento è il tid della transazione da annullare.

type:  3

function: abort request for specified transaction

reply: The reply is CANCELED

arguments: LIST ( tid )

tid of transaction to be cancelled

argument structure:

LIST ( LIST ( INDEX, INTEGER ))

comando: CANCELED​

Comando di tipo 4 (risposta a un allarme) a CANCEL. Negli argomenti: tid è il tid della transazione da annullare; trail è lo stamp del comando CANCEL; answer è yes se il comando è stato annullato, no in caso contrario.

type:  4

function: reply to CANCEL

arguments: LIST ( tid, trail, answer )

tid: tid of transaction to be cancelled

trail: the stamp of the CANCEL command

answer: yes if the command was canceled, no if not.

argument structure:

LIST ( LIST ( INDEX, INTEGER ),
LIST ( INTEGER, ... ),
BOOLEAN )