ArpaSMTPControl.mesa
The implementation module for Control contains the command interpreter and interactive write-arounds for public procedures.
Last Edited by: DCraft, December 21, 1983 8:21 pm
Last Edited by: Taft, January 22, 1984 12:38:12 pm PST
Last Edited by: HGM, April 26, 1984 11:24:07 pm PST
John Larson, October 21, 1987 10:05:37 pm PDT
DIRECTORY
ArpaSMTPSupport USING [LogPriority],
ArpaTCP USING [DByte],
BasicTime USING [GMT],
GVBasics USING [Password],
Rope USING [ROPE];
ArpaSMTPControl: CEDAR DEFINITIONS =
BEGIN
ROPE: TYPE = Rope.ROPE;
Constants controlling server behavior
The following "constants" are defined in the impl so they can be changed w/o recompiling the defs. [Also, because ropes generate code!]
arpaMSPort: ArpaTCP.DByte; -- the TCP port for SMTP
longGVMSName: ROPE;
defaultLogAcceptPriority: ArpaSMTPSupport.LogPriority; -- the default minimum acceptance priority for log entries
defaultInhibitTime: INT; -- the default time for which queues/ queue elements will be automatically inhibited
itemExpiryTimeout: INT; -- time after which mail items should be returned to sender if not delivered
notifyManagerNames: LIST OF ROPE; -- the path names of managers who should be notified of problems
arpaExceptions: LIST OF ROPE; -- send info on header parsing troubles here
deadLetterName: ROPE; -- the dead letter box to which bad items, etc. should be sent
deadLetterSenderName: ROPE; -- dead letter daemon
deadLetterPath: ROPE; -- arpa version of deadLetterSenderName
defaultRegistry: ROPE; -- .PA
startTime: BasicTime.GMT;
Access to the logged in user
LoggedInUser: PROC RETURNS [name: ROPE, password: GVBasics.Password, acl: AccessControlList];
! NoLoggedInUser
AccessControlList: TYPE = {none, regFriend, regOwner}; -- GV acl w.r.t. the gvMSName
accessControlListNames: ARRAY AccessControlList OF ROPE; -- printable
NoLoggedInUser: ERROR;
Control of reception demons
OKToAcceptGVInput: PROC RETURNS [ok: BOOL, whyNot: ROPE];
Returns whether, based on system load, it is OK to accept an input request from Grapevine.
OKToAcceptSMTPInput: PROC RETURNS [ok: BOOL, whyNot: ROPE];
Returns whether, based on system load, it is OK to accept an input request from Arpanet.
END.