Thanks!! RE: [imp] does horde/imp have to be installed from root of web tree?

Scott Singleton scott@beacon-inc.com
Thu, 1 Nov 2001 10:44:13 -0500


Thanks guys!  that did the trick.
I'm just about ready to go live with this system and wanted to thank ya'll
for the support.!
-S

-----Original Message-----
From: Jon Parise [mailto:jon@horde.org]
Sent: Thursday, November 01, 2001 9:50 AM
To: 'imp@lists.horde.org'
Subject: Re: [imp] does horde/imp have to be installed from root of web
tree?


On Thu, Nov 01, 2001 at 09:39:47AM -0500, Scott Singleton wrote:

> does horde/imp have to be installed off the root of the web tree?

Nope.

> and If I wanted multiple instances of horde running (ie.
> horde1/horde2) for various customers how can I keep all the
> horde apps from generating URLS that look at /horde?

Assuming your using the 2.3 code, you can just change the Horde
path in horde/config/registry.php for each customer's
installation.

You can do something similar in IMP 2.2, but I don't recall the
exact location of that setting.

-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- 
IMP mailing list: http://horde.org/imp/
Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org


>From liamr@umich.edu Date: Thu,  1 Nov 2001 11:47:02 -0500
Return-Path: <liamr@umich.edu>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 55768 invoked from network); 1 Nov 2001 16:47:04 -0000
Received: from donkeykong.gpcc.itd.umich.edu (smtp@141.211.2.163)
  by clark.horde.org with SMTP; 1 Nov 2001 16:47:04 -0000
Received: from esperanto.web.itd.umich.edu (smtp@esperanto.web.itd.umich.edu [141.213.231.69])
        by donkeykong.gpcc.itd.umich.edu (8.8.8/4.3-mailhub) with ESMTP id LAA22788
        for <imp@lists.horde.org>; Thu, 1 Nov 2001 11:47:02 -0500 (EST)
Received: (from nobody@localhost)
	by esperanto.web.itd.umich.edu (8.8.8/4.9.1-cyrus) id LAA00115
	for imp@lists.horde.org; Thu, 1 Nov 2001 11:47:02 -0500 (EST)
X-Authentication-Warning: esperanto.web.itd.umich.edu: nobody set sender to liamr@umich.edu using -f
Received: from manx.web.itd.umich.edu ( [manx.web.itd.umich.edu])
	as user liamr@l.imap.itd.umich.edu by mail-test.www.umich.edu with HTTP;
	Thu,  1 Nov 2001 11:47:02 -0500
Message-ID: <1004633222.3be17c86579c1@mail-test.www.umich.edu>
Date: Thu,  1 Nov 2001 11:47:02 -0500
From: Liam Hoekenga <liamr@umich.edu>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: unqualified email addresses - think the problem is Mail::parseRecipients

I /think/ that I've actually tracked down the problem.  It's in PEAR's Mail.php,
in the parseRecipients.  Here's the problem code:

    $addresses = Mail_RFC822::parseAddressList($recipients, 'localhost', false);
    $recipients = array();
    if (is_array($addresses)) {
        foreach ($addresses as $ob) {
           $recipients[] = $ob->mailbox . '@' . $ob->host;
       }
    }    

(if I change $ob->host to 'umich.edu', unqualified email gets delievered
properly, but then it forces /all/ outbound mail to be delivered to
'umich.edu'... less than ideal, eh?)

Acc'd to the comments in Mail_RFC822::parseAddressList, it's aware of a default
domain:

     * @param string  $default_domain  Default domain/host etc.

Is parseRecipients getting clobbered with "localhost"?  By the time this stuff
reaches the PEAR functions, I'm not sure how to access ['maildomain']... since
Mail::parseRecipients is being invoked by Mail::send,  and IMP doesn't pass
['maildomain'] into Mail::send when it's called.

advice?

Liam

----- End forwarded message -----