Honour the outcome of parse_extract_address(), testsuite 471
[exim.git] / src / src / exim.c
index 29e457fe276775360ec50acd24c8cb4da5362a85..ee75739ec95af88ea258ef20972b644272d1b597 100644 (file)
@@ -5540,11 +5540,12 @@ while (more)
           parse_extract_address(s, &errmess, &start, &end, &domain, FALSE);
 
 #ifdef SUPPORT_I18N
-       if (string_is_utf8(recipient))
-         message_smtputf8 = TRUE;
-       else
-         allow_utf8_domains = b;
+        if (recipient)
+          if (string_is_utf8(recipient)) message_smtputf8 = TRUE;
+          else allow_utf8_domains = b;
        }
+#else
+        ;
 #endif
         if (domain == 0 && !f.allow_unqualified_recipient)
           {