Commits

Zhang Huangbin  committed 741d45d

Remove dependence of web.py.

  • Participants
  • Parent commits 38bfa32

Comments (0)

Files changed (4)

 iRedAPD-1.4.0:
     * No iredapd-rr.py any more, we need only one instance of iRedAPD.
+    * Remove dependence of web.py.
     * Better user alias and alias domain support in plugin
       ldap_maillist_access_policy.
     * Plugin renamed:

File plugins/ldap_domain_wblist.py

 # Author: Zhang Huangbin <zhb _at_ iredmail.org>
-
-# ----------------------------------------------------------------------------
-# This plugin is used for per-domain white-/blacklist.
-# ----------------------------------------------------------------------------
+# Purpose: per-domain white-/blacklist.
 
 import logging
 

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)

File plugins/sql_user_restrictions.py

 #   - user@domain.com:  single email address
 
 import logging
-from web import sqlquote
 from libs import SMTP_ACTIONS
 
 
         FROM mailbox
         WHERE username=%s
         LIMIT 1
-    ''' % sqlquote(sender)
+    ''' % sender
     logging.debug('SQL to get restriction rules of sender (%s): %s' % (sender, sql))
 
     conn.execute(sql)
             FROM mailbox
             WHERE username=%s
             LIMIT 1
-        ''' % sqlquote(recipient)
+        ''' % recipient
         logging.debug('SQL to get restriction rules of recipient (%s): %s' % (recipient, sql))
 
         conn.execute(sql)