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, Branch_5_3 has been updated
       via  ef30c905c0aa140346eaa1f7f09f6901e7f549bd (commit)
      from  20e4fd2735353af5733a648fb4671fefa50fc0ab (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 ef30c905c0aa140346eaa1f7f09f6901e7f549bd
Author: Sylvain Beucler <[email protected]>
Date:   Tue May 27 10:55:37 2014 +0200

    Mailing lists: remove non-error output to prevent cron from sending e-mails

diff --git a/src/CHANGES b/src/CHANGES
index 81593f5..4e1f5ce 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -20,6 +20,7 @@ Fusionforge-5.3.1:
 * SCM Git: optimize sub-repositories detection time (Inria)
 * Mailing lists: site-wide list configuration override in 
core:config_path/custom/mailman-config_list.conf (Inria)
 * Mailing lists: reconfigure lists as-needed (Inria)
+* Mailing lists: remove non-error output to prevent cron from sending e-mails 
(Inria)
 * Homepages: new httpd_log_demux.php utility to split Apache logs per-project 
(Inria)
 * Cron jobs: add locking to avoid parallel runs of the same cron job (Inria)
 * get_news_notapproved.pl: upgrade for 5.3 (Inria)
diff --git a/src/cronjobs/mail/mailing_lists_create.php 
b/src/cronjobs/mail/mailing_lists_create.php
index 5675a62..38cccb3 100755
--- a/src/cronjobs/mail/mailing_lists_create.php
+++ b/src/cronjobs/mail/mailing_lists_create.php
@@ -91,7 +91,7 @@ for ($i=0; $i<$rows; $i++) {
        if ($status == MAIL__MAILING_LIST_IS_REQUESTED) {       // New list?
                $err .= "Creating Mailing List: $listname\n";
                //$lcreate_cmd = $path_to_mailman."/bin/newlist -q 
$listname@".forge_get_config('lists_host')." $email $listpassword &> /dev/null";
-               $lcreate_cmd = $path_to_mailman."/bin/newlist -q $listname 
$email $listpassword";
+               $lcreate_cmd = $path_to_mailman."/bin/newlist -q $listname 
$email $listpassword >/dev/null";
                $err .= "Command to be executed is $lcreate_cmd\n";
                passthru($lcreate_cmd, $failed);
                if ($failed) {
@@ -131,7 +131,7 @@ for ($i=0; $i<$rows; $i++) {
                                continue;
                        }
                        $fixurl_cmd = 
escapeshellcmd($path_to_mailman."/bin/withlist -l -r fix_url $listname -u 
".forge_get_config('lists_host'));
-                       passthru($fixurl_cmd, $failed);
+                       passthru("$fixurl_cmd >/dev/null 2>/dev/null", $failed);
                        if (!$failed) {
                                db_query_params('UPDATE mail_group_list set 
status=$1 WHERE status=$2 and group_list_id=$3',
                                                
array(MAIL__MAILING_LIST_IS_CONFIGURED,
@@ -302,7 +302,7 @@ for($k = 0; $k < $rows; $k++) {
                break;
        }
 
-       $rm_cmd = forge_get_config('mailman_path')."/bin/rmlist -a 
$deleted_mail_list";
+       $rm_cmd = forge_get_config('mailman_path')."/bin/rmlist -a 
$deleted_mail_list >/dev/null";
        $err .= "Command to be executed is $rm_cmd";
        passthru($rm_cmd, $failed);
        if($failed) {

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

Summary of changes:
 src/CHANGES                                |    1 +
 src/cronjobs/mail/mailing_lists_create.php |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to