[imp] Unable to save/postpone messages in 2.2.5

James J. Moore jmoore@thebank.com
Wed, 01 Aug 2001 12:02:28 -0400


Joaquim Homrighausen wrote:

> I still cannot get it to work. Moving/Copying messages, creating folders,
> and removing folders all work fine. Looking at 'compose.php3', it seems
> like $actionID does not contain anything (?!) when compose.php3 is called
> from the compose-screen. This I find rather odd..
>
> /* Run through action handlers */
> if (isset($actionID)) {
>     /* translate non-int values into the correct int */
>     if (strcspn($actionID, '0123456789')) {
>         $actionID = isset($actions[$actionID]) ? $actions[$actionID] : $actions\
> [htmlentities($actionID)];
>     }
>
> $actionID seems empty here.
>
> I have compared the generated HTML-code with that of a very old version of
> IMP and it looks similar as far as the <FORM> .. </FORM> construct that is
> generated. I cannot for the life of me figure out what I could have done to
> make it (mis)behave like this.
>
> It's with PHP 4.0.5 and Apache 1.3.20 btw.
>
> :: Who dares wins ::
>
> --
> 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

I was having other problems relating to the $actions array in compose.php3 (see
earlier postings on "uninitialized variable, etc., in compose.php3") and found that
the return value of htmlentities() may vary between the initial setting of the
$actions array and the setting of $actionID from the $actions array.  If
$actions[$actionID] is not set the crucial code fetches the value from
$actions[htmlentities($actionID)].  Unfortunately, the inclusion of the doctype.inc
file seems to cause the addition of an initial space in the return value of
htmlentitites($actionID) in some situations.  I have not investigated any of the
details, but I did change line 251 as follows to remove any unexpected initial
spaces, and everything worked.

$actionID = isset($actions[$actionID]) ? $actions[$actionID] :
$actions[trim(htmlentities($actionID))];

--
James J. Moore, Network Administrator
Citizens National Bank
204 S. Jackson Street
Evans City, PA  16033
Phone: 724-538-2205     Fax: 724-538-2221





>From janmailing@gmx.de Date: Wed,  1 Aug 2001 15:59:17 +0000
Return-Path: <janmailing@gmx.de>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 3794 invoked from network); 1 Aug 2001 16:05:25 -0000
Received: from mailout01.sul.t-online.com (HELO mailout01.sul.t-online.de) (194.25.134.80)
  by horde.org with SMTP; 1 Aug 2001 16:05:25 -0000
Received: from fwd06.sul.t-online.de 
	by mailout01.sul.t-online.de with smtp 
	id 15RyUp-0007UR-04; Wed, 01 Aug 2001 18:05:19 +0200
Received: from linux.wg.de (320034214675-0001@[217.0.156.196]) by fmrl06.sul.t-online.com
	with esmtp id 15RyUa-0l2Bf6C; Wed, 1 Aug 2001 18:05:04 +0200
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id f71FxIV06549
	for <imp@lists.horde.org>; Wed, 1 Aug 2001 17:59:18 +0200
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@mail.wg.de by linux.wg.de with HTTP;
	Wed,  1 Aug 2001 15:59:17 +0000
Message-ID: <996681557.3b6827554a545@linux.wg.de>
Date: Wed,  1 Aug 2001 15:59:17 +0000
From: Jan Schneider <janmailing@gmx.de>
To: imp@lists.horde.org
References: <OE31DqaJY4kJSFsxf4y00006fbf@hotmail.com> <me6gmtkh6r7tju0hlrrbltq7ugionfk4kr@mail.pineaus.com> <00d201c11a9a$6d6054c0$13c150c2@chester.ac.uk> <2m8gmtcsencrh9h7rfjnnracurf7vtvghd@mail.pineaus.com> <20010801114553.I17522@lafferty.ca>
In-Reply-To: <20010801114553.I17522@lafferty.ca>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] Fw: Configuration of Outlook Express

Zitat von Rich Lafferty <rich@horde.org>:

> On Wed, Aug 01, 2001 at 11:41:14AM -0400, Frank Pineau (frank@pineaus.com)
> wrote:
> > 
> > Really?  I didn't know that.  Well, then that goes back to the original
> > question.  Is there a way to get OE to work with IMP?, and the corollary
> > question, is it necessary or is it better to just point OE to your
> POP3/IMAP
> > server?
> 
> You'd get OE to work with IMP the same way you'd get OE to work with
> Eudora or Netscape's mail client; IMP is just an IMAP/POP client as
> far as the mail server is concerned. It just happens to be delivered
> over the Web.
> 
> If you want to know how to do what Hotmail did to enable users to go
> to a website and have OE autoconfigure (I guess?), then you'd almost
> certainly be best off asking in a forum of OE users.

Or use a packet sniffer to find out how OE communicates with hotmail if not via 
pop3/imap.

But I agree to the other postings: I see no need for such a feature in IMP.

Jan.