[Fusionforge-commits] r11016 - trunk/src/cronjobs/mail

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Oct 15 17:31:54 CEST 2010


Author: aljeux
Date: 2010-10-15 17:31:53 +0200 (Fri, 15 Oct 2010)
New Revision: 11016

Modified:
   trunk/src/cronjobs/mail/mailing_lists_create.php
Log:
Add missing code to handle reset of list password.

Modified: trunk/src/cronjobs/mail/mailing_lists_create.php
===================================================================
--- trunk/src/cronjobs/mail/mailing_lists_create.php	2010-10-15 15:29:03 UTC (rev 11015)
+++ trunk/src/cronjobs/mail/mailing_lists_create.php	2010-10-15 15:31:53 UTC (rev 11016)
@@ -105,6 +105,13 @@
 			$err .= "Privatizing ".$listname.": ".$privatize_cmd."\n";
 			passthru($privatize_cmd,$privatizeFailed);
 		}
+	} elseif ($status == MAIL__MAILING_LIST_PW_RESET_REQUESTED) {
+		$change_pw_cmd = escapeshellcmd($sys_path_to_mailman.'/bin/change_pw -l '.$listname);
+		$err .= "Resetting password of ".$listname."\n";
+		passthru($change_pw_cmd,$failed);
+		if ($failed) {
+			$err .= 'Failed to reset password of '.$listname."\n";
+		}
 	}
 	
 	if(file_exists(forge_get_config('mailman_path').'/mail/mailman')) {




More information about the Fusionforge-commits mailing list