[Fusionforge-commits] FusionForge branch master updated. 82813f2989b269c7f881ac7c41f9cfd29ba99926

Sylvain Beucler beuc-inria at fusionforge.org
Mon Apr 7 18:57:07 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  82813f2989b269c7f881ac7c41f9cfd29ba99926 (commit)
      from  f73588f3f8caa0a23a25335719389918eedea681 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 82813f2989b269c7f881ac7c41f9cfd29ba99926
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Mon Apr 7 18:55:46 2014 +0200

    Drop dead code ( can't be true since we're in a if(-bpublic){} block already

diff --git a/src/cronjobs/mail/mailing_lists_create.php b/src/cronjobs/mail/mailing_lists_create.php
index 9fa8de0..f8d137b 100755
--- a/src/cronjobs/mail/mailing_lists_create.php
+++ b/src/cronjobs/mail/mailing_lists_create.php
@@ -231,19 +231,13 @@ for ($i=0; $i<$rows; $i++) {
 			$fh = fopen($tmp,'w');
 			$listConfig = "description = \"$description\"\n" ;
 			$listConfig .= "host_name = '".forge_get_config('lists_host')."'\n" ;
-			if (!$public) {
-				$listConfig .= "archive_private = True\n" ;
-				$listConfig .= "advertised = False\n" ;
-				$listConfig .= "subscribe_policy = 3\n" ;
-				## Reject mails sent by non-members
-				$listConfig .= "generic_nonmember_action = 2\n";
-				## Do not forward auto discard message
-				$listConfig .= "forward_auto_discards = 0\n";
-			} else {
-				$listConfig .= "archive_private = False\n" ;
-				$listConfig .= "advertised = True\n" ;
-				$listConfig .= "subscribe_policy = 1\n" ;
-			}
+			$listConfig .= "archive_private = True\n" ;
+			$listConfig .= "advertised = False\n" ;
+			$listConfig .= "subscribe_policy = 3\n" ;
+			## Reject mails sent by non-members
+			$listConfig .= "generic_nonmember_action = 2\n";
+			## Do not forward auto discard message
+			$listConfig .= "forward_auto_discards = 0\n";
 			fwrite($fh, $listConfig);
 			fclose($fh);
 			$privatize_cmd = escapeshellcmd($path_to_mailman."/bin/config_list -i $tmp $listname");

-----------------------------------------------------------------------

Summary of changes:
 src/cronjobs/mail/mailing_lists_create.php |   20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list