Browse Source

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

stekkel 22 years ago
parent
commit
1fcc8f38c5
1 changed files with 5 additions and 1 deletions
  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) {
                 if ($sHost && $oAddr->mailbox) {
                     $oAddr->host = $sHost;
                     $oAddr->host = $sHost;
                 }
                 }
-            }
+            } else if (!$grouplookup && !$oAddr->host) {
+                if ($sHost && $oAddr->mailbox) {
+                    $oAddr->host = $sHost;
+                }
+	    }
           }
           }
           if (!$aAddrBookAddress && $oAddr->mailbox) {
           if (!$aAddrBookAddress && $oAddr->mailbox) {
               $aProcessedAddress[] = $oAddr;
               $aProcessedAddress[] = $oAddr;