/[imapfilter]/imapfilter/imapfilter.c
ViewVC logotype

Diff of /imapfilter/imapfilter.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by lefcha, Sat Aug 11 15:54:57 2001 UTC revision 1.3 by lefcha, Sun Aug 12 16:06:45 2001 UTC
# Line 26  int main(int argc, char **argv) Line 26  int main(int argc, char **argv)
26      options = OPTION_DETAILS_NORMAL;      options = OPTION_DETAILS_NORMAL;
27      account.logfile[0] = 0;      account.logfile[0] = 0;
28    
29      while ((c = getopt(argc, argv, "hl:qtvc:L")) != -1) {      while ((c = getopt(argc, argv, "c:hl:qstv")) != -1) {
30          switch (c) {          switch (c) {
31            case 'c':
32                config = optarg;
33                break;
34          case 'h':          case 'h':
35              usage();              usage();
36              exit(1);              exit(1);
# Line 39  int main(int argc, char **argv) Line 42  int main(int argc, char **argv)
42              options &= OPTION_DETAILS_CLEAR;              options &= OPTION_DETAILS_CLEAR;
43              options |= OPTION_DETAILS_QUITE;              options |= OPTION_DETAILS_QUITE;
44              break;              break;
45            case 's':
46                options |= OPTION_SHOW_HEADERS;
47                break;
48          case 't':          case 't':
49              options |= OPTION_TEST_MODE;              options |= OPTION_TEST_MODE;
50              break;              break;
# Line 46  int main(int argc, char **argv) Line 52  int main(int argc, char **argv)
52              options &= OPTION_DETAILS_CLEAR;              options &= OPTION_DETAILS_CLEAR;
53              options |= OPTION_DETAILS_VERBOSE;              options |= OPTION_DETAILS_VERBOSE;
54              break;              break;
         case 'c':  
             config = optarg;  
             break;  
         case 'L':  
             options |= OPTION_LOGGING_DISABLED;  
             break;  
55          default:          default:
56              usage();              usage();
57              exit(1);              exit(1);
# Line 107  void apply_filters(void) Line 107  void apply_filters(void)
107    
108    
109  /*  /*
110   * Prints a summary of prorgam's options.   * Prints a very brief usage message.
111   */   */
112  void usage(void)  void usage(void)
113  {  {
114      fprintf(stderr,      fprintf(stderr,
115              "usage: imapfilter [-hqtvL] [-c configfile] [-l logfile]\n");              "usage: imapfilter [-hqstv] [-c configfile] [-l logfile]\n");
116  }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26