[evolvis-commits] r10395: Adding a BCC all address↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 17:44:53 CET 2011


Author: mirabilos
Date: 2011-02-24 17:44:53 +0100 (Thu, 24 Feb 2011)
New Revision: 10395

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php
   trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.d/30homegroupother
   trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.inc.example
Log:
Adding a BCC all address


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog	2011-02-24 16:44:51 UTC (rev 10394)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog	2011-02-24 16:44:53 UTC (rev 10395)
@@ -1,5 +1,7 @@
 2005-01-16  Tim Perdue <tim at gforge.org>
 
+	* added BBC-all address to all email can be copied to a 
+	certain address for archiving
 	* added ability to release files in FRS system that were 
 	uploaded via FTP instead of the HTTP upload. Requires several new 
 	vars and a FTP upload directory that is readable and owned by the 

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php	2011-02-24 16:44:51 UTC (rev 10394)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/utils.php	2011-02-24 16:44:53 UTC (rev 10395)
@@ -85,8 +85,7 @@
  *
  */
 function util_send_message($to,$subject,$body,$from='',$BCC='',$sendername='',$extra_headers='') {
-	global $Language;
-	global $sys_sendmail_path;
+	global $Language,$sys_bcc_all_email_address,$sys_sendmail_path;
 
 	if (!$to) {
 		$to='noreply@'.$GLOBALS['sys_default_domain'];
@@ -106,6 +105,9 @@
 	}
 	$body2 .= "To: $to".
 		"\nFrom: ".util_encode_mailaddr($from,$sendername,$charset);
+	if (!empty($sys_bcc_all_email_address)) {
+		$BCC.=",$sys_bcc_all_email_address";
+	}
 	if(!empty($BCC)) {
 		$body2 .= "\nBCC: $BCC";
 	}

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.d/30homegroupother
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.d/30homegroupother	2011-02-24 16:44:51 UTC (rev 10394)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.d/30homegroupother	2011-02-24 16:44:53 UTC (rev 10395)
@@ -17,8 +17,8 @@
 $sys_upload_dir='{uploaddir}';
 $sys_ftp_upload_dir='{ftpuploaddir}';
 $sys_ftp_upload_host='{ftpuploadhost}';
-$sys_ftp_upload_chowner='{ftpuploadchowner}';
-$sys_apache_usergroup='{apapche_usergroup}';
+//$sys_ftp_upload_chowner='{ftpuploadchowner}';
+//$sys_apache_usergroup='{apapche_usergroup}';
 
 // Where the GForge files are placed
 // *** IMPORTANT: sys_urlroot *MUST* be an ABSOLUTE FILEYSTEM PATH NAME
@@ -41,6 +41,9 @@
 // Require that user give unique (not yet existent in db) email upon
 // registration
 $sys_require_unique_email=0;
+//
+// Require that all email be copied to this address if present
+$sys_bcc_all_email_address='';
 
 // GUI modifications (menu colors, etc.)
 //	See the top of the file include/html.php, this is where the menu colors

Modified: trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.inc.example
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.inc.example	2011-02-24 16:44:51 UTC (rev 10394)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/etc/local.inc.example	2011-02-24 16:44:53 UTC (rev 10395)
@@ -224,6 +224,9 @@
 // Require that user give unique (not yet existent in db) email upon
 // registration
 $sys_require_unique_email=0;
+//
+//Require that all email be copied to this address if present
+$sys_bcc_all_email_address='';
 
 // GUI modifications (menu colors, etc.)
 //	See the top of the file include/html.php, this is where the menu colors



More information about the evolvis-commits mailing list