[imp] IMP CVS problem...

Cliff Green green@UMDNJ.EDU
Tue, 19 Jun 2001 21:56:22 -0400 (EDT)


On Tue, 19 Jun 2001 mays@optonline.net wrote:

> I have been seeing a more general problem that may be related.  Once
> the first attempt has been made to log into a mailbox, most of the
> form data becomes persistent.  As an example, I log into an imap
> mailbox with ssl (localhost:993[imap/ssl]).  If I then log out and try
> to log back in without ssl (localhost:143[imap]), the ssl port (993)
> is actually being used (despite what the form says).

I've noticed this, too.

> For the time being, I have done the following:
>
> --- /cvs/horde/imp/lib/IMP.php.orig	Mon Jun  4 17:50:52 2001
> +++ /cvs/horde/imp/lib/IMP.php	Tue Jun 19 17:45:17 2001
> @@ -166,7 +166,8 @@
>          }
>
>          /* Attempt to retrieve the preferences from storage. */
> -        $prefs->retrieve();
> +// This just screws up everything - form data too persistent
> +//      $prefs->retrieve();
>
>          /* Set the session variables. These are cached. */
>          $imp['server'] = $prefs->getValue('mailhost');
>
>
> I don't know that deleting this line is correct, but I do not seem to have
> suffered any ill effects.  It may be more appropriate to move this earlier,
> rather than removing it..
>
> Mark

Hmmm.  That line is in there twice - once where you've edited it, and
again in the function sessionSetup(), which is called about 10 lines down
from where you've edited it out.

c
-- 
Clifford Green               Internet -  green@umdnj.edu
Academic Computing Services                    UMDNJ-IST
Our continuing mission: To seek out knowledge of C, to explore strange
UNIX commands, and to boldly code where no one has man page 4.