git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14527
7612ce4b-ef26-0410-bec9-
ea0150e637f0
if (preg_match('/^\d+\.\d+\.\d+\.\d+$/', $helohost))
$helohost = '[' . $helohost . ']';
if (preg_match('/^\d+\.\d+\.\d+\.\d+$/', $helohost))
$helohost = '[' . $helohost . ']';
+ $hook_result = do_hook('smtp_helo_override', $helohost);
+ if (!empty($hook_result)) $helohost = $hook_result;
+
/* Lets introduce ourselves */
fputs($stream, "EHLO $helohost\r\n");
// Read ehlo response
/* Lets introduce ourselves */
fputs($stream, "EHLO $helohost\r\n");
// Read ehlo response