iredapd / plugins /

Diff from to

File plugins/

 # Author: Zhang Huangbin <zhb _at_>
 # 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)