OSSP CVS Repository

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

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.35 -> 1.36

--- lmtp2nntp_config.c   2002/01/31 15:54:53     1.35
+++ lmtp2nntp_config.c   2002/01/31 15:59:12     1.36
@@ -789,6 +789,28 @@
     }
     catch (ex)
         rethrow;
+
+    /* --newsgroup MULTI */
+    try {
+        char *cp;
+        int i;
+
+        if (   (val_get(ctx->val, "option.newsgroup", &ov) != VAL_OK)
+            || ((ov->ndata >= 1) && (ov->data.m == NULL))
+              ) throw(0,0,0);
+        log1(ctx, DEBUG, "ov->ndata = %d", ov->ndata);
+        for (i = 0; i < ov->ndata; i++)
+            log2(ctx, TRACE, "--newsgroup[%d] = \"%s\"", i, (ov->data.m)[i]);
+
+        for (i = 0; i < ov->ndata; i++) {
+            cp = (ov->data.m)[i];
+            log2(ctx, DEBUG, "cp = (data.m)[%d] = \"%s\"", i, cp);
+            argz_add(&ctx->azGroupargs, &ctx->asGroupargs, cp);
+        }
+    }
+    catch (ex)
+        rethrow;
+
 CUS:
     return;
 }

CVSTrac 2.0.1