From: Florent Bruneau Date: Wed, 30 Mar 2011 19:03:34 +0000 (+0200) Subject: Fix to_forlife in list.rpc.py (Closes #1454) X-Git-Tag: xorg/1.1.1~37^2~19 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=94b64368ff6ee87426d450da36831220753268d7;p=platal.git Fix to_forlife in list.rpc.py (Closes #1454) Signed-off-by: Florent Bruneau --- diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index ff30e73..843f7c0 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -202,7 +202,7 @@ def to_forlife(email): mbox = email fqdn = PLATAL_DOMAIN if ( fqdn == PLATAL_DOMAIN ) or ( fqdn == PLATAL_DOMAIN2 ): - res = mysql_fetchone("""SELECT CONCAT(f.alias, '@%s'), a.full_name + res = mysql_fetchone("""SELECT CONCAT(s1.email, '@%s'), a.full_name FROM accounts AS a INNER JOIN email_source_account AS s1 ON (a.uid = s1.uid AND s1.type = 'forlife') INNER JOIN email_source_account AS s2 ON (a.uid = s2.uid AND s2.email = '%s')