OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.23 -> 1.24

--- lmtp2nntp_config.c   2002/01/31 13:48:27     1.23
+++ lmtp2nntp_config.c   2002/01/31 13:54:21     1.24
@@ -404,6 +404,28 @@
     }
     catch (ex)
         rethrow;
+
+    /* --groupmode SINGLE */
+    try {
+        if (   (val_get(ctx->val, "option.groupmode", &ov) != VAL_OK)
+            || (ov->ndata != 1)
+            || (ov->data.s == NULL)
+              ) throw(0,0,0);
+        log1(ctx, TRACE, "--groupmode = \"%s\"", ov->data.s);
+
+        if      (strcasecmp(ov->data.s, "arg") == 0)
+            ctx->option_groupmode = GROUPMODE_ARG;
+        else if (strcasecmp(ov->data.s, "envelope") == 0)
+            ctx->option_groupmode = GROUPMODE_ENVELOPE;
+        else if (strcasecmp(ov->data.s, "header") == 0)
+            ctx->option_groupmode = GROUPMODE_HEADER;
+        else {
+            log1(ctx, ERROR, "option --groupmode, invalid mode (%s)", ov->data.s);
+            throw(0,0,0);
+        }
+    }
+    catch (ex)
+        rethrow;
 CUS:
     return;
 }

CVSTrac 2.0.1