Skip to content
Snippets Groups Projects

make the SMTP check less eager

Open sano requested to merge issue/email_verify-2775351:2775351-550-5.5.1-protocol into 7.x-2.x
1 file
+ 15
1
Compare changes
  • Side-by-side
  • Inline
+ 15
1
@@ -429,7 +429,21 @@ function _email_verify_check_internal($mail, $debugging_mode, $debugging_text, $
);
}
if (preg_match("/^220/", $connect_result = fgets($connect, 1024))) {
// Read all greeting lines until we get a complete response
$connect_result = '';
do {
$line = _email_verify_read_line($connect, $debugging_mode, $debugging_text, $date_time_format);
$connect_result .= $line['line'];
} while ($line['next_char'] == '-');
if ($debugging_mode) {
$debugging_text[] = t(
'Complete greeting from server: %greeting (!date_time)',
array('%greeting' => $connect_result, '!date_time' => format_date(time(), $date_time_format))
);
}
if (preg_match("/^220[-\s]/m", $connect_result)) {
// An SMTP connection was made.
if ($debugging_mode) {
$debugging_text[] = t(
Loading