OSSP CVS Repository

ossp - Difference in ossp-pkg/lmtp2nntp/lmtp2nntp_main.c versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.21 -> 1.22

--- lmtp2nntp_main.c     2002/01/31 14:47:13     1.21
+++ lmtp2nntp_main.c     2002/01/31 15:03:23     1.22
@@ -189,12 +189,6 @@
 static void lmtp_gfs_rset(lmtp2nntp_t *);
 static void lmtp_gfs_quit(lmtp2nntp_t *);
 
-enum {
-    OPERATIONMODE_FAKE,
-    OPERATIONMODE_POST,
-    OPERATIONMODE_FEED
-};
-
 /*
  * print usage information
  */
@@ -456,46 +450,6 @@
     /* read in the arguments */
     while ((i = getopt(argc, argv, "C:DKP:Va:b:c:d:g:h:l:m:n:o:r:s:t:u:v")) != -1) {
         switch (i) {
-            case 'o': /*POD [B<-o> I<operationmode>] */
-                if      (strcasecmp(optarg, "post") == 0)
-                    ctx->option_operationmode = OPERATIONMODE_POST;
-                else if (strcasecmp(optarg, "feed") == 0)
-                    ctx->option_operationmode = OPERATIONMODE_FEED;
-                else {
-                    if (strlen(optarg) != 9) {
-                        fprintf(stderr, "%s:Error: Invalid format or length \"%s\" to option -o\n", ctx->progname, optarg);
-                        CU(ERR_EXECUTION);
-                    }
-
-                    if (optarg[3] != '/') {
-                        fprintf(stderr, "%s:Error: Invalid format or missing slash \"%s\" to option -o\n", ctx->progname, optarg);
-                        CU(ERR_EXECUTION);
-                    }
-
-                    optarg[3] = NUL;
-                    ctx->option_operationmodefakestatus = &optarg[0];
-                    ctx->option_operationmodefakedsn    = &optarg[4];
-
-                    if (   strlen(ctx->option_operationmodefakestatus) != 3
-                        || !isdigit((int)ctx->option_operationmodefakestatus[0])
-                        || !isdigit((int)ctx->option_operationmodefakestatus[1])
-                        || !isdigit((int)ctx->option_operationmodefakestatus[2])) {
-                            fprintf(stderr, "%s:Error: Invalid status in format \"%s\" to option -o\n", ctx->progname, optarg);
-                            CU(ERR_EXECUTION);
-                        }
-
-                    if (   (strlen(ctx->option_operationmodefakedsn) != 5)
-                        || !isdigit((int)ctx->option_operationmodefakedsn[0])
-                        || (ctx->option_operationmodefakedsn[1] != '.')
-                        || !isdigit((int)ctx->option_operationmodefakedsn[2])
-                        || (ctx->option_operationmodefakedsn[3] != '.')
-                        || !isdigit((int)ctx->option_operationmodefakedsn[4])
-                        || (ctx->option_operationmodefakedsn[0] != ctx->option_operationmodefakestatus[0])) {
-                            fprintf(stderr, "%s:Error: Invalid dsn in format \"%s\" to option -o\n", ctx->progname, optarg);
-                            CU(ERR_EXECUTION);
-                        }
-                    }
-                break;
             case 'r': /*POD [B<-r> I<restrictheader>] */
                 ctx->option_restrictheader = strdup(optarg);
                 /* protect ourselfs from the substitution of backreferences.

CVSTrac 2.0.1