Commits

Zhang Huangbin  committed fe6d0df

Typo.

  • Participants
  • Parent commits 904fdf8

Comments (0)

Files changed (2)

File libs/__init__.py

     'reject': 'REJECT Not authorized',
 }
 
+# Mail list access policies.
 MAILLIST_POLICY_PUBLIC = 'public'
 MAILLIST_POLICY_DOMAIN = 'domain'
 MAILLIST_POLICY_SUBDOMAIN = 'subdomain'
 MAILLIST_POLICY_ALLOWEDONLY = 'allowedonly'
 MAILLIST_POLICY_MEMBERSANDMODERATORSONLY = 'membersandmoderatorsonly'
 
+# Comments of mail list access policies.
 MAILLIST_ACCESS_POLICIES = {
     MAILLIST_POLICY_PUBLIC: 'Unrestricted',
     MAILLIST_POLICY_DOMAIN: 'Only users under same domain are allowed',

File libs/ldaplib/conn_utils.py

         # Policy: policy==
         # Filter used to get both members and moderators.
         search_filter = "(|(&(|(objectClass=mailUser)(objectClass=mailExternalUser))(memberOfGroup=%s))(&(objectclass=mailList)(mail=%s)))" % (recipient, recipient)
-        search_attrs = ['mail', 'shadowAddress', 'listAllowedUser', ]
+        search_attrs = ['mail', 'shadowAddress', 'listAllowedUser']
 
     if policy == MAILLIST_POLICY_ALLOWEDONLY:
         # Not necessary to query LDAP to get value of listAllowedUser.