Honour the outcome of parse_extract_address(), testsuite 471
[exim.git] / src / src / exim.c
index a5f0bd578e5ba192f1582c0c06dfa9cf52b89eaa..6a9a1477f21e5774fe315050eab5e0373ce00ef3 100644 (file)
@@ -5593,11 +5593,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)
           {