Zhang Huangbin  committed 96c2a52

Small performance improvement: return DUNNO if sender address is shorter than 6 characters.

  • Participants
  • Parent commits 2f1b67a
  • Branches default

Comments (0)

Files changed (1)

File src/

     def handle_data(self, map):
         if 'sender' in map.keys() and 'recipient' in map.keys():
+            if len(map['sender']) < 6:
+                # Not a valid email address.
+                return 'DUNNO'
             # Get plugin module name and convert plugin list to python list type.
             self.plugins = cfg.get('ldap', 'plugins', '')
             self.plugins = [v.strip() for v in self.plugins.split(',')]