From 8b53b4baaffc18ebc700b46ee28cbc2c7046916a Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 10 Jul 2003 16:04:26 +0000 Subject: [PATCH] This will add the default domain again if the email address does not contain it. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5257 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/mime/Rfc822Header.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/class/mime/Rfc822Header.class.php b/class/mime/Rfc822Header.class.php index 61685f3b..ca5ade5e 100644 --- a/class/mime/Rfc822Header.class.php +++ b/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; -- 2.25.1