home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume3 / sm-smtp / cmds.h next >
Encoding:
C/C++ Source or Header  |  1989-02-03  |  1.0 KB  |  49 lines

  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
  38.     { "VRFY", 4, },
  39. /* sendmail compatibility */
  40. #define ONEX        9
  41.     { "ONEX", 4, },
  42. #define VERB        10
  43.     { "VERB", 4, },
  44.  
  45.     { 0, 0, }            /* end of table marker */
  46. };
  47.  
  48. #define toupper(c)    (islower(c) ? ((c) - ('a' - 'A')) : (c))
  49.