Allows Google Apps only users to receive AX letters.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 19 May 2008 23:27:06 +0000 (01:27 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 19 May 2008 23:27:06 +0000 (01:27 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/axletter/axletter.inc.php

index 8ec19b6..f8c7ca1 100644 (file)
@@ -111,7 +111,7 @@ class AXLetter extends MassMailer
              LEFT JOIN  aliases         AS a  ON(u.user_id=a.id AND FIND_IN_SET('bestalias',a.flags))
              LEFT JOIN  emails          AS e  ON(e.uid=u.user_id AND e.flags='active')
                  WHERE  ni.last < {?} AND {$this->subscriptionWhere()}
-                        AND (e.email IS NOT NULL OR ni.user_id = 0)
+                        AND (e.email IS NOT NULL OR FIND_IN_SET('googleapps', u.mail_storage) OR ni.user_id = 0)
               GROUP BY  u.user_id";
     }