34 static bool         show_help(
int fd, 
char *hdr, 
char *str);
    46    "  HELP\r\n" "    * We can help you\r\n" "    * Commands :\r\n"},
    52    "    * Show filter version\r\n" "    * Syntax :\r\n"    53    "      ze-ndc VERSION\r\n"},
    59    "    * Modify running configuration (overrides ze-filter values)\r\n"    60    "    * Syntax :\r\n" "      ze-ndc SETCF option value\r\n"},
    66    "    * Dumps running configuration\r\n"    67    "    * Syntax :\r\n" "      ze-ndc DUMPCF option\r\n"    68    "          option is one of :\r\n"    69    "            default\r\n" "            running\r\n" "            short\r\n"},
    75    "    * Set heuristic filter (oracle) checks scores\r\n"    77    "      ze-ndc SETORACLE Tnn value\r\n"    78    "        Where T is one of :\r\n"    80    "           C : Connection check\r\n"    81    "           M : Message check\r\n"    82    "           H : HTML mime part check\r\n"    83    "           P : Plain text mime part check\r\n"},
    89    "    * Set the value of some internal variables\r\n"    91    "      ze-ndc SET variable value\r\n"    92    "        Where variable can be one of :\r\n"    94    "          LOG_SM_MACROS\r\n" "          MXCHECKLEVEL\r\n"   102    "          GREYCLEANUP\r\n" "          GREY_DEWHITE_THRESHOLD\r\n"   110    "    * Reopen bayes filter database\r\n"   112    "      ze-ndc BAYES command parameter\r\n"   113    "        Where command can be one of :\r\n" "          REOPEN\r\n"},
   119    "    *" "    * Syntax :\r\n" "      ze-ndc \r\n"},
   126    "    * Show internals\r\n"   128    "      ze-ndc SHOW select\r\n"   129    "        Where select can be one of :\r\n"   130    "          RUN        : Running configuration\r\n"},
   136    "    * Show internal statistics for this filter instance\r\n"   138    "      ze-ndc STATS select\r\n"   139    "        Where select can be one of :\r\n"   140    "          ORACLE         : heuristic filter counters for this process\r\n"   141    "          THROTTLE       : show global server rates\r\n"   142    "          SMTPRATE       : show rates data for each client\r\n"   143    "          CONNOPEN       : show open connections\r\n"   144    "          HTIMES         : callback handling times\r\n"   145    "          COUNTERS       : show internal counters\r\n"   146    "          SCORES         : histogram of scores (regex + oracle)\r\n"   147    "          ORASCORE       : histogram of scores (oracle)\r\n"   148    "          REGSCORE       : histogram of scores (regex)\r\n"   149    "          LIVEHISTORY    : show short history blacklist\r\n"   150    "          LIVEHISTORY_R  : same as before with address resolution (slower)\r\n"},
   156    "    * Reload configuration files (ze-filter.cf)\r\n"   157    "    * Syntax :\r\n" "      ze-ndc RECONFIG\r\n"},
   163    "    * Reload / Reopen tables databases or logfiles\r\n"   165    "      ze-ndc RELOAD select\r\n"   166    "        Where select can be one of :\r\n"   188    "    * Reload / Reopen tables databases or logfiles\r\n"   190    "      ze-ndc REOPEN select\r\n"   191    "        Where select can be one of :\r\n"   213    "    * Reinitialize internal values\r\n"   215    "      ze-ndc RESET select\r\n"   216    "        Where select can be one of :\r\n"   217    "          STATS\r\n" "          GREYERRORS\r\n"},
   223    "    * Restart the filter (soft restart)\r\n"   224    "    * Syntax :\r\n" "      ze-ndc RESTART\r\n"},
   231 get_help_rec(cmd, buf, sz)
   239   for (p = helps; p->
cmd != NULL; p++) {
   241       snprintf(buf, sz, 
"%s", p->
str);
   247   for (p = helps; p->
cmd != NULL; p++) {
   248     snprintf(s, 
sizeof (s), 
"      %s\r\n", p->
cmd);
   275   if (argc > 0 && argv[0] != NULL)
   278   memset(buf, 0, 
sizeof (buf));
   279   p = get_help_rec(cmd, buf, 
sizeof (buf));
   281   return show_help(fd, hdr, buf);
   289 show_help(fd, hdr, str)
 bool sd_printf(int sd, char *format,...)
char * zeStr2Upper(char *)
bool ndc_help(int fd, char *hdr, bool help, int argc, char **argv)
#define STRCASEEQUAL(a, b)