home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mm / mm-0.90 / novice.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-18  |  1.1 KB  |  51 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. #include "mm.h"
  9. #include "parse.h"
  10.  
  11. extern setkey user_level;
  12.  
  13. /*
  14.  * banner messages for different modes
  15.  */
  16. static char *top_level_banner = "\n\
  17. [ H=headers  R=read  REV=review  S=send   Q=quit  BYE  ?=Hints  HELP ]\n\
  18. ";
  19.  
  20. static char *send_banner = "\n\
  21. [ D=display  S=send  TE=text  ED=edit  TY=type   Q=quit  ?=Hints  HELP ]\n\
  22. ";
  23.  
  24. static char *read_banner = "\n\
  25. [ D=delete  H=header  R=reply  TY=type  PRI=print   Q=quit  ?=Hints  HELP ]\n\
  26. ";
  27.  
  28. /*
  29.  * print out a banner message if the userlevel is novice.   the banner
  30.  * depends on the current mode.
  31.  */
  32.  
  33. novice_banner(mode)
  34. int mode;
  35. {
  36.     if (strcmp(user_level.current, "novice") != 0)
  37.     return;
  38.     switch(mode) {
  39.     case MM_TOP_LEVEL:
  40.     cmxprintf("%s", top_level_banner);
  41.     break;
  42.     case MM_SEND:
  43.     cmxprintf("%s", send_banner);
  44.     break;
  45.     case MM_READ:
  46.     cmxprintf("%s", read_banner);
  47.     break;
  48.     default:break;
  49.     }
  50. }
  51.