based on bug report #497148. Limits alias expansion functions to local addressbook...
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 2 Mar 2002 07:41:10 +0000 (07:41 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 2 Mar 2002 07:41:10 +0000 (07:41 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2532 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php

index 13ffe93be25aa83fee221e8ee0070b046bb71011..6bf4527636a267d8f76110129a8d035210b3ab92 100644 (file)
@@ -55,7 +55,7 @@ function expandAddrs ($array) {
     /* don't show errors -- kinda critical that we don't see
      * them here since the redirect won't work if we do show them
      */
-    $abook = addressbook_init(false);
+    $abook = addressbook_init(false, true);
     for ($i=0; $i < count($array); $i++) {
         $result = $abook->lookup($array[$i]);
         $ret = "";
@@ -89,7 +89,7 @@ function expandRcptAddrs ($array) {
     /* don't show errors -- kinda critical that we don't see
      * them here since the redirect won't work if we do show them
      */
-    $abook = addressbook_init(false);
+    $abook = addressbook_init(false, true);
     for ($i=0; $i < count($array); $i++) {
         $result = $abook->lookup($array[$i]);
         $ret = "";