home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mm / mm-0.90 / formattab.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-18  |  1.2 KB  |  42 lines

  1. /*
  2.  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  3.  * the City of New York.  Permission is granted to any individual or
  4.  * institution to use, copy, or redistribute this software so long as it
  5.  * is not sold for profit, provided this copyright notice is retained.
  6.  */
  7.  
  8. #ifndef lint
  9. static char *rcsid = "$Header: /f/src2/encore.bin/cucca/mm/tarring-it-up/RCS/formattab.c,v 2.1 90/10/04 18:24:20 melissa Exp $";
  10. #endif
  11.  
  12. /*
  13.  * a keyword table of the different formats we handle
  14.  */
  15.  
  16. #include "mm.h"
  17. #include "parse.h"
  18. #include "rd.h"
  19.  
  20. /*
  21.  * this has to stay in alphabetical order too, 
  22.  * or they won't line up, will they?
  23.  */
  24. keywrd formatkeys[] = {
  25.     { "babyl",    0,    (keyval) TYPE_BABYL },
  26.     { "mbox",    0,    (keyval) TYPE_MBOX },
  27.     { "mh",    KEY_INV|KEY_NOR, (keyval) TYPE_MH },
  28.     { "mtxt",    0,    (keyval) TYPE_MTXT },
  29.     { "pop2",    KEY_INV|KEY_NOR, (keyval) TYPE_POP2 },
  30.     { "pop3",    KEY_INV|KEY_NOR, (keyval) TYPE_POP3 },
  31.   };
  32.  
  33. keytab formattab = { (sizeof(formatkeys)/sizeof(keywrd)), formatkeys };
  34.  
  35. /*
  36.  * default mail file names for different formats
  37.  * must be kept in same order as formatkeys, above
  38.  */
  39. char *defmailfile[] = {
  40.     "~/RMAIL", "~/mbox", "~/mh??", "~/mail.txt", "~/pop2??", "~/pop3??",
  41. };
  42.