DEFINITION MODULE Names;

        (********************************************************)
        (*                                                      *)
        (*        Definitions of a few basic data types         *)
        (*                                                      *)
        (*  Programmer:         P. Moylan                       *)
        (*  Started:            9 May 1998                      *)
        (*  Last edited:        31 January 2018                 *)
        (*  Status:             OK                              *)
        (*                                                      *)
        (********************************************************)


TYPE
    UserNameIndex = [0..255];
    UserName = ARRAY UserNameIndex OF CHAR;
    HostNameIndex = [0..255];
    HostName = ARRAY HostNameIndex OF CHAR;
    DomainNameIndex = HostNameIndex;
    DomainName = HostName;
    PassString = ARRAY [0..31] OF CHAR;
    FilenameIndex = [0..511];
    FilenameString = ARRAY FilenameIndex OF CHAR;
    PathString = ARRAY [0..511] OF CHAR;
    HostCategory = (whitelisted, mayrelay, relaydest, banned, nochunking);
    ServiceType = (POP, SMTP, MSA, IMAP);
    CardArray2 = ARRAY ServiceType[POP..SMTP] OF CARDINAL;
    CardArray3 = ARRAY ServiceType[POP..MSA] OF CARDINAL;
    CardArray = ARRAY ServiceType OF CARDINAL;

    (* For IMAP4 we need very long command lines. *)

    ArgStringIndex = [0..4095];
    ArgString = ARRAY ArgStringIndex OF CHAR;
    ArgPointer = POINTER TO ArgString;

END Names.

