1. Zhang Huangbin
  2. iredapd

Source

iredapd / libs / sql / modeler.py

Diff from to

File libs/sql/modeler.py

 
         sender = smtp_session_data['sender'].lower()
         recipient = smtp_session_data['recipient'].lower()
+        sasl_username = smtp_session_data['sasl_username'].lower()
 
         plugin_kwargs = {'smtp_session_data': smtp_session_data,
                          'conn': self.cursor,
                          'recipient': recipient,
                          'sender_domain': sender.split('@')[-1],
                          'recipient_domain': recipient.split('@')[-1],
-                         'sasl_username': smtp_session_data.get('sasl_username', '').lower(),
-                        }
+                         'sasl_username': sasl_username}
 
         # TODO Get SQL record of mail user or mail alias before applying plugins
         # TODO Query required sql columns instead of all