Roundcube Community Forum

 

strange IMAP behavior

Started by _Petya_, November 03, 2007, 07:44:10 PM

Previous topic - Next topic

_Petya_

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

_Petya_


happy

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));
}