- ListType is no longer a required parameter; it now defaults to "open".
This commit is contained in:
parent
cce2222de3
commit
56addb6b2f
15
config.c
15
config.c
@ -184,11 +184,11 @@ const struct List_Config* getListConfig(const char * listname)
|
|||||||
list_fqdn = NULL;
|
list_fqdn = NULL;
|
||||||
admin_password = NULL;
|
admin_password = NULL;
|
||||||
posting_password = NULL;
|
posting_password = NULL;
|
||||||
listtype = NULL;
|
listtype = "open";
|
||||||
reply_to = NULL;
|
reply_to = NULL;
|
||||||
postingfilter = NULL;
|
postingfilter = NULL;
|
||||||
archivepath = NULL;
|
archivepath = NULL;
|
||||||
subtype = NULL;
|
subtype = "public";
|
||||||
allowmembers = FALSE;
|
allowmembers = FALSE;
|
||||||
intro_file = "introduction";
|
intro_file = "introduction";
|
||||||
sig_file = "signature";
|
sig_file = "signature";
|
||||||
@ -263,11 +263,16 @@ const struct List_Config* getListConfig(const char * listname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp(subtype, "public"))
|
if (!strcasecmp(subtype, "public"))
|
||||||
ListConfig->listtype = SUBSCRIPTION_PUBLIC;
|
ListConfig->subtype = SUBSCRIPTION_PUBLIC;
|
||||||
else if (!strcasecmp(subtype, "admin"))
|
else if (!strcasecmp(subtype, "admin"))
|
||||||
ListConfig->listtype = SUBSCRIPTION_ADMIN;
|
ListConfig->subtype = SUBSCRIPTION_ADMIN;
|
||||||
else if (!strcasecmp(subtype, "acknowledged") || !strcasecmp(subtype, "acked"))
|
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->allowmembers = allowmembers;
|
||||||
ListConfig->fqdn = (list_fqdn) ? list_fqdn : MasterConfig->fqdn;
|
ListConfig->fqdn = (list_fqdn) ? list_fqdn : MasterConfig->fqdn;
|
||||||
|
|||||||
@ -17,8 +17,7 @@
|
|||||||
# acknowledge his posting once, after that, he can post
|
# acknowledge his posting once, after that, he can post
|
||||||
# as he wishes.
|
# as he wishes.
|
||||||
#
|
#
|
||||||
# This option is REQUIRED. Petidomo will abort with an error, if it is
|
# The default, if this option is unset, is an open mailing list.
|
||||||
# unset.
|
|
||||||
ListType open
|
ListType open
|
||||||
|
|
||||||
# TAG: SubscriptionType <public|admin|acknowledged>
|
# TAG: SubscriptionType <public|admin|acknowledged>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user