From 3dcc2bf9782d0a6b43dbb76d60d35a31e552ac73 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Thu, 10 Feb 2005 07:52:56 +0000 Subject: [PATCH] backport ML stuff Patches applied: * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-33 fix for new ML : PLEASE DONT TLA UPGRADE THE SITE NOW git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-467 --- bin/lists.rpc.py | 12 ++++-------- hooks/lists.inc.php | 2 +- htdocs/listes/moderate.php | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index d4f24ef..8a75ee9 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -70,7 +70,7 @@ PLATAL_DOMAIN = get_config('Mail', 'domain') 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', '_') ################################################################################ # @@ -696,8 +696,8 @@ check_opts = { '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, @@ -733,9 +733,6 @@ def check_options(userdesc,perms,vhost,listname,correct=False): 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() @@ -786,7 +783,7 @@ def create_list(userdesc,perms,vhost,listname,desc,advertise,modlevel,inslevel,o 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 @@ -801,8 +798,7 @@ def create_list(userdesc,perms,vhost,listname,desc,advertise,modlevel,inslevel,o 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)) diff --git a/hooks/lists.inc.php b/hooks/lists.inc.php index 67b776b..2dccd6c 100644 --- a/hooks/lists.inc.php +++ b/hooks/lists.inc.php @@ -30,7 +30,7 @@ class ListsConfig var $spool = '/var/spool/platal/archives/'; var $admin_owner = ''; - var $vhost_sep = '-'; + var $vhost_sep = '_'; } // }}} diff --git a/htdocs/listes/moderate.php b/htdocs/listes/moderate.php index 4282e22..0ac2bb2 100644 --- a/htdocs/listes/moderate.php +++ b/htdocs/listes/moderate.php @@ -23,7 +23,7 @@ require_once("xorg.inc.php"); 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]}"); } -- 2.1.4