Ver Fonte

This will add the default domain again if the email address does not contain
it.

stekkel há 22 anos atrás
pai
commit
1fcc8f38c5
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      class/mime/Rfc822Header.class.php

+ 5 - 1
class/mime/Rfc822Header.class.php

@@ -469,7 +469,11 @@ class Rfc822Header {
                 if ($sHost && $oAddr->mailbox) {
                     $oAddr->host = $sHost;
                 }
-            }
+            } else if (!$grouplookup && !$oAddr->host) {
+                if ($sHost && $oAddr->mailbox) {
+                    $oAddr->host = $sHost;
+                }
+	    }
           }
           if (!$aAddrBookAddress && $oAddr->mailbox) {
               $aProcessedAddress[] = $oAddr;