iredapd / libs / ldaplib / modeler.py

Diff from to

libs/ldaplib/modeler.py

                     smtp_session_data,
                     plugins=[],
                     sender_search_attrlist=[],
-                    recipient_search_attrlist=[],
-                   ):
+                    recipient_search_attrlist=[]):
         # No sender or recipient in smtp session.
         if not 'sender' in smtp_session_data or \
-           not 'recipient' in smtp_session_data:
+                not 'recipient' in smtp_session_data:
             return SMTP_ACTIONS['default']
 
         # Not a valid email address.
                          'sender_dn': None,
                          'sender_ldif': None,
                          'recipient_dn': None,
-                         'recipient_ldif': None,
-                        }
+                         'recipient_ldif': None}
 
         # TODO Perform addition plugins which don't require sender/recipient info
         # e.g.
-        #   - enforce TLS: encryption_protocol=TLSv1/SSLv3
-
+        #   - security enforce: encryption_protocol=TLSv1/SSLv3
 
         for plugin in plugins:
             # Get LDIF data of sender if required
             if plugin.REQUIRE_LOCAL_SENDER \
-               and plugin_kwargs['sender_dn'] is None:
+                    and plugin_kwargs['sender_dn'] is None:
                 sender_dn, sender_ldif = conn_utils.get_account_ldif(
                     conn=self.conn,
                     account=smtp_session_data['sender'],
 
             # Get LDIF data of recipient if required
             if plugin.REQUIRE_LOCAL_RECIPIENT \
-               and plugin_kwargs['recipient_dn'] is None:
+                    and plugin_kwargs['recipient_dn'] is None:
                 recipient_dn, recipient_ldif = conn_utils.get_account_ldif(
                     conn=self.conn,
                     account=smtp_session_data['recipient'],
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.