Source

iredapd / plugins / sql_alias_access_policy.py

Diff from to

File plugins/sql_alias_access_policy.py

 # Author: Zhang Huangbin <zhb _at_ iredmail.org>
-
 # Purpose: Apply access policy on sender while recipient is an mail alias.
 
 # Available access policies:
 #   - membersAndModeratorsOnly: Only members and moderators are allowed.
 
 import logging
-from web import sqlquote
 from libs import SMTP_ACTIONS
 from libs import MAILLIST_POLICY_PUBLIC
 from libs import MAILLIST_POLICY_DOMAIN
                 AND domain=%s
                 AND active=1
             LIMIT 1
-    ''' % (sqlquote(recipient), sqlquote(recipient_domain))
+    ''' % (recipient, recipient_domain)
     logging.debug('SQL: %s' % sql)
 
     conn.execute(sql)