Roundcube Community Forum

Release Support => Pending Issues => Topic started by: _Petya_ on November 03, 2007, 07:44:10 PM

Title: strange IMAP behavior
Post by: _Petya_ on November 03, 2007, 07:44:10 PM
Hi!

I'm using the latest stable release of RC, with Courier-IMAP, and I have the following issue:

I login first to RC, it works well, I can see the successful IMAP login in the logs. I click to Personal Settings, then back to E-Mail, RC starts loading, screen goes blank, and after 2 minutes (script timeout) it stops at a blank page. RC logs timeout in the IMAP module, and in the syslog I see falied IMAP logins. I can only use RC again if I wait 10 minutes for the session timeout, or drop my session from the MySQL table 'sessions'.

The strange thing is, that at first time (after login to RC), it authenticates correctly to IMAP eg: username = "john", but at all subsequent attempts (like clicking back from "Personal Settings" to "E-mail"), it tries to login to IMAP with username = "john@localhost", which will fail eventually.

Why RC is doing this?

(Squirrelmail works on the same machine perfectly...)

Thanks for your answers, and sorry for starting a new thread, but I haven't found anything by Search.

Petya
Title: Re: strange IMAP behavior
Post by: _Petya_ on November 05, 2007, 07:09:15 PM
Could anyone please help me?
Title: Re: strange IMAP behavior
Post by: happy on January 17, 2008, 04:05:08 PM
I had the same problem on my system and I was able to workaround it by the following in the program/steps/settings/func.inc

/*if ($USER_DATA = $DB->fetch_assoc($sql_result))
{
 $username = $USER_DATA['username'] . (!strpos($USER_DATA['username'], '@') ? '@'.$USER_DATA['mail_host'] : '');
 $OUTPUT->set_pagetitle(sprintf('%s %s', rcube_label('settingsfor'), $username));
}*/

to

if ($USER_DATA = $DB->fetch_assoc($sql_result))
{
 $username = $USER_DATA['username'];
 $OUTPUT->set_pagetitle(sprintf('%s %s', rcube_label('settingsfor'), $username));
}