Annotation of researchv10no/cmd/nupas/smtp/cmds.h, revision 1.1.1.1

1.1       root        1: #ifndef lint
                      2: static char *cmds_sccsid = "@(#)cmds.h 1.5 87/04/06";
                      3: #endif lint
                      4: /* cmds.h */
                      5: 
                      6: /*  Copyright 1984 by the Massachusetts Institute of Technology  */
                      7: /*  See permission and disclaimer notice in file "notice.h"  */
                      8: 
                      9: /* EMACS_MODES: c !fill */
                     10: 
                     11: /*
                     12:  * smtp command strings and associated codes.  Note that the command code
                     13:  * MUST be equal to the index of the command in the table.
                     14:  */
                     15: 
                     16: 
                     17: struct cmdtab  {
                     18:        char    *c_name;                /* command name */
                     19:        int     c_len;                  /* command length */
                     20: } cmdtab[] = {
                     21: #define        NONE            0               /* no such command */
                     22:        { "", 0, },
                     23: #define        HELO            1
                     24:        { "HELO", 4, },
                     25: #define        MAIL            2
                     26:        { "MAIL FROM:", 10 },
                     27: #define        RCPT            3
                     28:        { "RCPT TO:", 8, },
                     29: #define        DATA            4
                     30:        { "DATA", 4, },
                     31: #define        QUIT            5
                     32:        { "QUIT", 4, },
                     33: #define        RSET            6
                     34:        { "RSET", 4, },
                     35: #define        NOOP            7
                     36:        { "NOOP", 4, },
                     37: #define VRFY           8               /* for RFC 1123 compliance */
                     38:        { "VRFY", 4, },
                     39: /* sendmail compatibility */
                     40: #define ONEX           9
                     41:        { "ONEX", 4, },
                     42: #define VERB           10
                     43:        { "VERB", 4, },
                     44: #define DEBG           11
                     45:        { "DEBUG", 5, },
                     46: 
                     47:        { 0, 0, }                       /* end of table marker */
                     48: };
                     49:  
                     50: #define ISLOWER(c)     ('a' <= (c) && (c) <= 'z')
                     51: #define TOUPPER(c)     (islower(c) ? ((c) - ('a' - 'A')) : (c))

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.