From c9fac5cf0f8383d0fe6afcba5189b0eb87a2b8b6 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sun, 7 Dec 2008 18:33:19 +0100 Subject: [PATCH 1/1] Optimizes the nickname synchronization for GoogleApps by not sending data for disabled accounts. Signed-off-by: Vincent Zanotti --- bin/cron/google_apps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cron/google_apps.php b/bin/cron/google_apps.php index 925cb33..82c62a2 100755 --- a/bin/cron/google_apps.php +++ b/bin/cron/google_apps.php @@ -91,7 +91,7 @@ $res = XDB::iterator( INNER JOIN aliases AS f ON (f.id = g.l_userid AND f.type = 'a_vie') INNER JOIN aliases AS a ON (a.id = g.l_userid AND a.type = 'alias') LEFT JOIN gapps_nicknames AS n ON (n.l_userid = g.l_userid AND n.g_nickname = a.alias) - WHERE n.g_nickname IS NULL AND g.l_userid IS NOT NULL"); + WHERE g.g_status = 'active' AND n.g_nickname IS NULL AND g.l_userid IS NOT NULL"); while ($nickname = $res->next()) { // Checks that the requested nickname doesn't look like a regular forlife; // we might run in troubler later if we don't keep the two repos. If we need -- 2.1.4