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

Diff of /imapfilter/imapfilter.c

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

revision 1.62 by lefcha, Mon Feb 9 19:56:42 2004 UTC revision 1.63 by lefcha, Mon Feb 9 20:39:23 2004 UTC
# Line 64  main(int argc, char *argv[]) Line 64  main(int argc, char *argv[])
64          conffile = NULL;          conffile = NULL;
65          connpri.sock = connaux.sock = -1;          connpri.sock = connaux.sock = -1;
66    
67          while ((c = getopt(argc, argv, "c:d:Dhkl:"          while ((c = getopt(argc, argv, "DVc:d:kl:"
68  #ifdef ENCRYPTED_PASSWORDS  #ifdef ENCRYPTED_PASSWORDS
69                      "p"                      "p"
70  #endif  #endif
71                      "qvV")) != -1) {                      "qv")) != -1) {
72                  switch (c) {                  switch (c) {
73                    case 'D':
74                            options |= OPTION_DEBUG;
75                            break;
76                    case 'V':
77                            version();
78                            /* NOTREACHED */
79                  case 'c':                  case 'c':
80                          conffile = optarg;                          conffile = optarg;
81                          break;                          break;
# Line 80  main(int argc, char *argv[]) Line 86  main(int argc, char *argv[])
86                          if (errno)                          if (errno)
87                                  interval = 0;                                  interval = 0;
88                          break;                          break;
                 case 'D':  
                         options |= OPTION_DEBUG;  
                         break;  
                 case 'h':  
                         usage();  
                         exit(ERROR_UNDEFINED);  
                         break;  
89                  case 'k':                  case 'k':
90                          kill_imapfilter();                          kill_imapfilter();
91                          break;                          break;
# Line 106  main(int argc, char *argv[]) Line 105  main(int argc, char *argv[])
105                          if (verbosity < 2)                          if (verbosity < 2)
106                                  verbosity++;                                  verbosity++;
107                          break;                          break;
                 case 'V':  
                         version();  
                         exit(ERROR_UNDEFINED);  
                         break;  
108                  default:                  default:
109                    case '?':
110                          usage();                          usage();
111                          exit(ERROR_UNDEFINED);                          /* NOTREACHED */
                         break;  
112                  }                  }
113          }          }
114    
# Line 293  void Line 288  void
288  usage(void)  usage(void)
289  {  {
290          fprintf(stderr,          fprintf(stderr,
291              "usage: imapfilter [-bDhk"              "usage: imapfilter [-DVbk"
292  #ifdef ENCRYPTED_PASSWORDS  #ifdef ENCRYPTED_PASSWORDS
293              "p"              "p"
294  #endif  #endif
295              "qvV] [-c configfile] [-d interval] [-l logfile]\n");              "qv] [-c configfile] [-d interval] [-l logfile]\n");
296    
297            exit(ERROR_UNDEFINED);
298  }  }
299    
300    
# Line 316  version(void) Line 313  version(void)
313              ,SSLeay()              ,SSLeay()
314  #endif  #endif
315          );          );
316    
317            exit(ERROR_UNDEFINED);
318  }  }

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26