From ab26ea2b4ec02209b006ef7d67948b7aa8bad411 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 30 Nov 2015 22:48:12 +0000 Subject: [PATCH] Adding "smtp_helo_override" hook git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14527 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/deliver/Deliver_SMTP.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/class/deliver/Deliver_SMTP.class.php b/class/deliver/Deliver_SMTP.class.php index b3406312..90c90c00 100644 --- a/class/deliver/Deliver_SMTP.class.php +++ b/class/deliver/Deliver_SMTP.class.php @@ -154,6 +154,9 @@ class Deliver_SMTP extends Deliver { 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 -- 2.25.1