--- 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;
}
|