[imp] Can't login to IMP 2.3

Patrick Boutilier boutilpj@ednet.ns.ca
Thu, 04 Jan 2001 13:06:19 -0400


Got it!

Turns out I didn't have a imp/config/prefs.php file. With one everything works
fine.

Found that out because I was getting a divide by zero error on line 297 of
mailbox.php when I hard coded the proper connect string in lib/IMP.lib. Line 297 of
mailbox.php is:


$page_count = ceil($imp['msgcount'] / $prefs->getValue('max_msgs'));


So I did a grep on max_msgs in imp/config and it was in prefs.php.dist :-)



Patrick Boutilier wrote:

> Anil Madhavapeddy wrote:
>
> > Quoting Patrick Boutilier <boutilpj@ednet.ns.ca>:
> >
> >
> >
> > In that case, you'd better start hacking.  Try starting in imp/lib/IMP.php
> > and look for imap_open calls, and insert var_dumps to find out what variables
> > are getting passed onto it (at least, that's how I do it; never found a decent
> > way of debugging PHP scripts)
> >
>
> In lib/IMP.php on line 288 or so if have this line:
>
> $imp['stream'] = @imap_open($connstr, $imp['user'], Secret::read(IMP::getKey(),
> $imp['pass']));
>
> and var_dump ($connstr) =
>
> string(8) "{/imap:}"
>
> This should be something like this in my case:
>
> {staff.ednet.ns.ca/imap:145}
>
> I will now look into why $connstr is not being set right.
>
> >
> > --
> > Anil Madhavapeddy, <anil@recoil.org>
> >
> > --
> > IMP mailing list: http://horde.org/imp/
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
> --
> IMP mailing list: http://horde.org/imp/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org



>From chuck@horde.org Date: Thu,  4 Jan 2001 12:17:14 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 28581 invoked from network); 4 Jan 2001 17:18:17 -0000
Received: from r93aag000369.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
  by horde.org with SMTP; 4 Jan 2001 17:18:17 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 0588C3974; Thu,  4 Jan 2001 12:17:14 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@marina by marina.horde.org with HTTP;
	Thu,  4 Jan 2001 12:17:14 -0500
Message-ID: <978628634.3a54b01ac0a46@marina.horde.org>
Date: Thu,  4 Jan 2001 12:17:14 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
References: <3A5381A3.15C4F64C@ednet.ns.ca> <20010104001855.A11519@total.recoil.org> <3A54664B.499316F6@ednet.ns.ca> <978616382.3a54803e34f29@horde.recoil.org> <3A54A9EF.E3F9BABC@ednet.ns.ca> <3A54AD8B.80AF0059@ednet.ns.ca>
In-Reply-To: <3A54AD8B.80AF0059@ednet.ns.ca>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.6-cvs
Subject: Re: [imp] Can't login to IMP 2.3

Quoting Patrick Boutilier <boutilpj@ednet.ns.ca>:

> Turns out I didn't have a imp/config/prefs.php file. With one everything
> works fine.

Ah! Apparently I didn't yet commit my changes for IMP to check for all of the 
conf files. I'll have to do that when I get home.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"If you can't stand the heat, get out of the chicken!" - Baby Blues


>From chuck@horde.org Date: Thu,  4 Jan 2001 12:20:14 -0500
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 29659 invoked from network); 4 Jan 2001 17:21:04 -0000
Received: from r93aag000369.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (209.6.192.126)
  by horde.org with SMTP; 4 Jan 2001 17:21:04 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 27AC53974; Thu,  4 Jan 2001 12:20:15 -0500 (EST)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@marina by marina.horde.org with HTTP;
	Thu,  4 Jan 2001 12:20:14 -0500
Message-ID: <978628814.3a54b0ceedd76@marina.horde.org>
Date: Thu,  4 Jan 2001 12:20:14 -0500
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
References: <80788005141.20010103194315@vo.lu> <978547593.3a5373893b60a@marina.horde.org> <85800521.20010103204324@vo.lu>
In-Reply-To: <85800521.20010103204324@vo.lu>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.6-cvs
Subject: Re: Re[2]: [imp] IMP 2.2.3 & file attchments

Quoting Christian Schmit <cschmit@vo.lu>:

> True. Via IMAP the problem that attachments are showing up twice
> is solved however not the saving file attachment problem.

Okay - I just made some changes to both 2.2 and 2.3 with respect to downloading 
attachments. I _believe_ that the problems are now fixed; I can now download 
attachments with both IE and Netscape, over HTTPS and HTTP. I'm not sure when 
or how things broke - I know this is something I had tested and it was working 
with 2.2 at least - but having gone through the code, I'm not sure how things 
were working in the first place. It was a confusing afternoon.

Anyway, the 2.3 changes have probably propogated to the demo site already, and 
the 2.2 ones should soon (Anil, how often _does_ that update?) so I would 
appreciate you giving it another shot sometime soon.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"If you can't stand the heat, get out of the chicken!" - Baby Blues