Roundcube Community Forum

 

SVN 849 - Settings -> Folders => IMAP connection lost

Started by Florianer, October 03, 2007, 10:02:48 AM

Previous topic - Next topic

Florianer

Hi again,
I downloaded svn 849 yesterday and set it up as normal. As I remember, I could log in into my mail account. I wanted to find out, what is new in this version and came to Settings -> Folders. In this moment, I received the red message box with something like "IMAP connection lost" or "IMAP not found" or somewhat ("Keine Verbindung zum IMAP Server). I was logged out and now, I cannot login anymore. Error (German) "Anmeldung fehlgeschlagen" - "Error logging in" maybe ;)
I checked the main and db.php more than three times... all is set up OK - I guess. Tried to log in from another PC worked, but I made the mistake to go to Settings -> Folders again. Fool me! Logged out and no chance to log in anymore (maybe I should try to empty the cache.) Someone any ideas? Interesting perhaps is, that I have seen all my folders and the mails in the inbox at the first log in... so, I had have a connection via IMAP to the server until I was in the settings...

Florian

edit: I tried to empty the cache... and... tada... log in worked. I clicked on some folders. Worked. Settings -> Folders... you know the game... may someone commit this behavior / bug please.
it\'s not a bug - it\'s a feature


yakuza

I can verify this behavior in the 852 as well, I've been seeing it for several days.

shukko

Hi

I am using svn 860
same problem described above happens also on my server.
I am using exim + dovecot
there are two types of mail names on my system
1- master accounts = these are direct system accounts with imap logins like user1 user2
2- virtual accounts= these are mail accounts bounded to virtual domains and imap logins are like [email protected]

This problem happens only in server accounts and not in virtual accounts.
The cause of this problem is when a user clicks settings link on any page roundcube tries to write the mail address in page title. such as setting for [email protected]
But when a system user account logins it writes user@localhost.

So the solution is to edit

/program/steps/settings/func.inc  file

and comment out / delete the following lines

$username = $USER_DATA['username'] . (!strpos($USER_DATA['username'], '@') ? '@'.$USER_DATA['mail_host'] : '');
$OUTPUT->set_pagetitle(sprintf('%s %s', rcube_label('settingsfor'), $username));

You can no longer see the mail address in page title but everything works as expected..

Florianer

Hi there,
bug still in rc2, but now I got an error log:
[22-Oct-2007 19:48:00 +0200] IMAP Error: Authentication for [email][email protected][/email] failed (LOGIN): "a001 NO Authentication failed." in on line 0
[22-Oct-2007 19:48:00] PHP Warning: fputs(): supplied argument is not a valid stream resource in /www/htdocs/v165760/rc_rc_2/roundcubemail-0.1-rc2/program/lib/imap.inc on line 1717
[22-Oct-2007 19:48:00] PHP Warning: Invalid argument supplied for foreach() in /www/htdocs/v165760/rc_rc_2/roundcubemail-0.1-rc2/program/include/rcube_imap.inc on line 1579
[22-Oct-2007 19:48:00] PHP Warning: Invalid argument supplied for foreach() in /www/htdocs/v165760/rc_rc_2/roundcubemail-0.1-rc2/program/include/rcube_imap.inc on line 2445
[22-Oct-2007 19:48:00] PHP Warning: fputs(): supplied argument is not a valid stream resource in /www/htdocs/v165760/rc_rc_2/roundcubemail-0.1-rc2/program/lib/imap.inc on line 1767
[22-Oct-2007 19:48:00] PHP Warning: fputs(): supplied argument is not a valid stream resource in /www/htdocs/v165760/rc_rc_2/roundcubemail-0.1-rc2/program/lib/imap.inc on line 1668
it\'s not a bug - it\'s a feature


ctueck

We're using 0.1-rc2, and I got the same error, whenever the IMAP user did not have a domain part.

Just replacing the
Quote$username = ...
statement by
Quote$username = $USER_DATA['username']
solved the problem.