Events: Add smtp:ehlo event
[exim.git] / src / src / transports / smtp.c
index d90f7adf1cefe43665f128924faa0c3e25be8200..3df06c2029e568fe16050b08dc5c314570160c2e 100644 (file)
@@ -814,6 +814,10 @@ if (!smtp_read_response(sx, sx->buffer, sizeof(sx->buffer), '2',
 #ifdef EXPERIMENTAL_DSN_INFO
 sx->helo_response = string_copy(sx->buffer);
 #endif
+#ifndef DISABLE_EVENT
+(void) event_raise(sx->conn_args.tblock->event_action,
+  US"smtp:ehlo", sx->buffer);
+#endif
 return TRUE;
 }