PLATAL_DOMAIN2 = get_config('Mail', 'domain2', '')
ML_OWNER = get_config('Lists', 'admin_owner')
-VHOST_SEP = get_config('Lists', 'vhost_sep', '-')
+VHOST_SEP = get_config('Lists', 'vhost_sep', '_')
################################################################################
#
'filter_content' : False,
'first_strip_reply_to' : False,
'forward_auto_discards' : True,
- 'header_filter_rules' : [],
'hold_these_nonmembers' : [],
+ 'host_name' : 'listes.polytechnique.org',
'include_list_post_header' : False,
'include_rfc2369_headers' : False,
'max_num_recipients' : 0,
if mlist.real_name.lower() != listname:
options['real_name'] = listname, mlist.real_name
if correct: mlist.real_name = listname
- if mlist.host_name != vhost:
- options['real_name'] = vhost, mlist.host_name
- if correct: mlist.host_name = vhost
if correct:
mlist.Save()
mlist.Unlock()
os.umask(oldmask)
mlist.real_name = listname
- mlist.host_name = vhost
+ mlist.host_name = 'listes.polytechnique.org'
mlist.description = desc
mlist.advertised = int(advertise) is 0
mlist.max_message_size = 0
mlist.msg_footer = "_______________________________________________\n" \
- + "Liste de diffusion %(real_name)s\n" \
- + BASEURL+"/listes/"
+ + "Liste de diffusion %(real_name)s\n"
mlist.header_filter_rules = []
mlist.header_filter_rules.append(('X-Spam-Flag: Yes, tests=bogofilter', mm_cfg.HOLD, False))
if (!Env::has('liste')) header('Location: index.php');
$liste = strtolower(Env::get('liste'));
-if (preg_match("!(?:[a-z0-9]+\\.)?{$globals->mail->domain}-(.*)!", $liste, $matches)) {
+if (preg_match("!(?:[a-z0-9]+\\.)?{$globals->mail->domain}_(.*)!", $liste, $matches)) {
header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
}