I'm having a little
problem with squirrelmail. I'm not a programer but I think it is not destroing
the session as it should.
If I log to SM using
one email '[EMAIL PROTECTED]' , logout and then
login with another account '[EMAIL PROTECTED]'
the new account does not create the specialfolders automaticly. In config.php it
is
specified to auto
create special folders. It worked for the first user.
So I took a
look at the code that does it and saw : (left_main.php)
----
if
($auto_create_special && !isset($auto_create_done))
{
$autocreate = array($sent_folder, $trash_folder, $draft_folder);
foreach( $autocreate as $folder ) {
$autocreate = array($sent_folder, $trash_folder, $draft_folder);
foreach( $autocreate as $folder ) {
if (($folder != '') &&
($folder != 'none')) {
if (
!sqimap_mailbox_exists($imapConnection, $folder))
{
sqimap_mailbox_create($imapConnection, $folder, '');
} else if (!sqimap_mailbox_is_subscribed($imapConnection, $folder)) {
sqimap_subscribe($imapConnection, $folder);
}
}
}
sqimap_mailbox_create($imapConnection, $folder, '');
} else if (!sqimap_mailbox_is_subscribed($imapConnection, $folder)) {
sqimap_subscribe($imapConnection, $folder);
}
}
}
/* Let the world know that autocreation is complete! Hurrah!
*/
$auto_create_done = TRUE;
sqsession_register($auto_create_done, 'auto_create_done');
}
$auto_create_done = TRUE;
sqsession_register($auto_create_done, 'auto_create_done');
}
-----
If I remove the
'&& !isset($auto_create_done) from the first "if" everything works fine.
So it looks to me that the session is been passed between my users. I'm using
the same machine/navigator to test many accounts.
I'm using squirrelmail CVS version from '2003-01-06
(squirrelmail-20030106_0840-CVS.devel.tar.bz2) in a linux box rh 7.3
Is that a
problem or I'm missing something here?
Thanks
alot.
Thiago
Lima.
