[evolvis-commits] r17384: fix mailing list integration↵ • subscribing of people already in the group upon creation works now↵ • tasks/trackers can now send to -discuss@ by default

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Jul 8 15:39:21 CEST 2011


Author: mirabilos
Date: 2011-07-08 15:39:21 +0200 (Fri, 08 Jul 2011)
New Revision: 17384

Modified:
   trunk/gforge_base/evolvisforge/gforge/deb-specific/create-mailing-lists.pl
   trunk/gforge_base/evolvisforge/gforge/debian/changelog
Log:
fix mailing list integration
• subscribing of people already in the group upon creation works now
• tasks/trackers can now send to -discuss@ by default


Modified: trunk/gforge_base/evolvisforge/gforge/deb-specific/create-mailing-lists.pl
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/deb-specific/create-mailing-lists.pl	2011-07-08 13:39:19 UTC (rev 17383)
+++ trunk/gforge_base/evolvisforge/gforge/deb-specific/create-mailing-lists.pl	2011-07-08 13:39:21 UTC (rev 17384)
@@ -75,7 +75,7 @@
 		# for commit lists
 		print CONFIG "max_message_size = 0\n";
 		# Accept commits from svn from everyone by default
-		print CONFIG "accept_these_nonmembers = ['^\\\\w+\@$sys_default_domain']\n";
+		print CONFIG "accept_these_nonmembers = ['^.+\@$sys_default_domain']\n";
 
 		# Subscribe list creator
 		push @subscribers, "$user_name\@$sys_default_domain";
@@ -93,6 +93,8 @@
 		$sth->finish () ;
 	}
 	if ($listname =~ /-discuss$/) {
+		# Accept mails from Tasks and Tracker areas by default
+		print CONFIG "accept_these_nonmembers = ['^.+\@$sys_default_domain']\n";
 		# Subscribe list creator
 		push @subscribers, "$user_name\@$sys_default_domain";
 		# Subscribe all other group members at creation time
@@ -140,11 +142,11 @@
 
 	if (@subscribers > 0) {
 		# auto-subscribe people to list
-		$cmd = "su www-data -c \"for i in";
+		$cmd = "su www-data -c 'for i in";
 		foreach $tmp (@subscribers) {
 			$cmd = "$cmd $tmp";
 		}
-		$cmd = "$cmd; do echo \$i >>$file_dir/mmsubscribe/$listname; done\"";
+		$cmd = "$cmd; do echo \$i >>$file_dir/mmsubscribe/$listname; done'";
 		system($cmd);
 	}
 

Modified: trunk/gforge_base/evolvisforge/gforge/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/debian/changelog	2011-07-08 13:39:19 UTC (rev 17383)
+++ trunk/gforge_base/evolvisforge/gforge/debian/changelog	2011-07-08 13:39:21 UTC (rev 17384)
@@ -18,8 +18,9 @@
   * [#1644] [#1645] Disable paging in PM/Tasks altogether
   * Fix Subject line encoding in SVN commit eMails
   * [TTID# 1112695] Allow uploading *.GraphML to MediaWiki
+  * Fix mailing list integration (default subscribee handling)
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Wed, 01 Jun 2011 12:08:06 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Wed, 01 Jun 2011 15:33:45 +0200
 
 gforge (4.8.3+evolvis33) unstable; urgency=high
 



More information about the evolvis-commits mailing list