$grouplistid = db_result($res,$i,'group_list_id');
$public = db_result($res,$i,'is_public');
- $is_commits_list = preg_match('/-commits$/', $listname);
-
// Here we assume that the privatize_list.py script is located in the same dir as this script
$script_dir = dirname(__FILE__);
$privatize_cmd = escapeshellcmd($sys_path_to_mailman.'/bin/config_list -i '.$script_dir.'/privatize_list.py '.$listname);
echo $err;
continue;
} else {
- if ($is_commits_list) {
- // Make the *-commits list public
- $err .= "Making ".$listname." public: ".$publicize_cmd."\n";
- passthru($publicize_cmd,$publicizeFailed);
- } else {
- // Privatize the new list
- $err .= "Privatizing ".$listname.": ".$privatize_cmd."\n";
- passthru($privatize_cmd,$privatizeFailed);
- }
+ // Privatize the new list
+ $err .= "Privatizing ".$listname.": ".$privatize_cmd."\n";
+ passthru($privatize_cmd,$privatizeFailed);
}
$mailingListIds[] = $grouplistid;
} else { // Old list
- if ($is_commits_list) {
- $err .= "Making ".$listname." public: ".$publicize_cmd."\n";
- passthru($publicize_cmd,$publicizeFailed);
- } elseif (!$public) {
+ if (!$public) {
// Privatize only if it is marked as private
$err .= "Privatizing ".$listname.": ".$privatize_cmd."\n";
passthru($privatize_cmd,$privatizeFailed);