Check-in Number:
|
277 | |
Date: |
2001-Jan-15 18:19:36 (local)
2001-Jan-15 17:19:36 (UTC) |
User: | simons |
Branch: | |
Comment: |
- ListType is no longer a required parameter; it now defaults to "open". |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/petidomo/config.c 1.14 -> 1.15
--- config.c 2001/01/15 16:55:45 1.14
+++ config.c 2001/01/15 17:19:36 1.15
@@ -1,6 +1,6 @@
/*
$Source: /v/ossp/cvs/ossp-pkg/petidomo/Attic/config.c,v $
- $Revision: 1.14 $
+ $Revision: 1.15 $
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
@@ -184,11 +184,11 @@
list_fqdn = NULL;
admin_password = NULL;
posting_password = NULL;
- listtype = NULL;
+ listtype = "open";
reply_to = NULL;
postingfilter = NULL;
archivepath = NULL;
- subtype = NULL;
+ subtype = "public";
allowmembers = FALSE;
intro_file = "introduction";
sig_file = "signature";
@@ -263,11 +263,16 @@
}
if (!strcasecmp(subtype, "public"))
- ListConfig->listtype = SUBSCRIPTION_PUBLIC;
+ ListConfig->subtype = SUBSCRIPTION_PUBLIC;
else if (!strcasecmp(subtype, "admin"))
- ListConfig->listtype = SUBSCRIPTION_ADMIN;
+ ListConfig->subtype = SUBSCRIPTION_ADMIN;
else if (!strcasecmp(subtype, "acknowledged") || !strcasecmp(subtype, "acked"))
- ListConfig->listtype = SUBSCRIPTION_ACKED;
+ ListConfig->subtype = SUBSCRIPTION_ACKED;
+ else
+ {
+ syslog(LOG_ERR, "List \"%s\" doesn't have a valid subscription type in config file.", listname);
+ exit(1);
+ }
ListConfig->allowmembers = allowmembers;
ListConfig->fqdn = (list_fqdn) ? list_fqdn : MasterConfig->fqdn;
|
|
ossp-pkg/petidomo/config/list-config 1.5 -> 1.6
--- list-config 2001/01/15 16:55:45 1.5
+++ list-config 2001/01/15 17:19:36 1.6
@@ -1,5 +1,5 @@
#
-# $Header: /v/ossp/cvs/ossp-pkg/petidomo/config/list-config,v 1.5 2001/01/15 16:55:45 simons Exp $
+# $Header: /v/ossp/cvs/ossp-pkg/petidomo/config/list-config,v 1.6 2001/01/15 17:19:36 simons Exp $
#
# TAG: ListType <open|closed|moderated|acknowledged|acknowledged-once>
@@ -17,8 +17,7 @@
# acknowledge his posting once, after that, he can post
# as he wishes.
#
-# This option is REQUIRED. Petidomo will abort with an error, if it is
-# unset.
+# The default, if this option is unset, is an open mailing list.
ListType open
# TAG: SubscriptionType <public|admin|acknowledged>
|
|