Honour the outcome of parse_extract_address(), testsuite 471
[exim.git] / src / src / receive.c
index cf3ef4b967ad63e11903ce61500d35727ee322e1..6eec73e2ba80ad3bcbc8150280bcfa800e8a477a 100644 (file)
@@ -2562,11 +2562,12 @@ if (extract_recip)
           &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
 
         /* Keep a list of all the bad addresses so we can send a single