[imp] IMP CVS problem...

mays@optonline.net mays@optonline.net
Tue, 19 Jun 2001 18:06:21 -0400


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).  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