gforge/backend/shell/apache.sh svneol=native#unset
gforge/common/include/TextSanitizer.class -text
gforge/contrib/cmd-line-prototype.tar.gz -text
+gforge/cronjobs/mail/publicize_list.py -text
gforge/db/20030701-gforge-3.0 -text svneol=unset#application/octet-stream
gforge/db/20031026-gforge-3.1 -text svneol=unset#application/octet-stream
gforge/db/20040108-gforge-3.21 -text svneol=unset#application/octet-stream
$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);
+ $publicize_cmd = escapeshellcmd($sys_path_to_mailman.'/bin/config_list -i '.$script_dir.'/publicize_list.py '.$listname);
if (! in_array($listname,$mailing_lists)) { // New list?
$err .= "Creating Mailing List: $listname\n";
echo $err;
continue;
} else {
- // Privatize the new list
- $err .= "Privatizing ".$listname.": ".$privatize_cmd."\n";
- passthru($privatize_cmd,$privatizeFailed);
+ 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);
+ }
}
$mailingListIds[] = $grouplistid;
} else { // Old list
- // Privatize only if it is marked as private
- if (!$public) {
+ if ($is_commits_list) {
+ $err .= "Making ".$listname." public: ".$publicize_cmd."\n";
+ passthru($publicize_cmd,$publicizeFailed);
+ } elseif (!$public) {
+ // Privatize only if it is marked as private
$err .= "Privatizing ".$listname.": ".$privatize_cmd."\n";
passthru($privatize_cmd,$privatizeFailed);
}