Author Topic: SVN 849 - Settings -> Folders => IMAP connection lost  (Read 6065 times)

Offline Florianer

  • Full Member
  • ***
  • Posts: 102
SVN 849 - Settings -> Folders => IMAP connection lost
« on: October 03, 2007, 10:02:48 AM »
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


Offline yakuza

  • Newbie
  • *
  • Posts: 5
Re: SVN 849 - Settings -> Folders => IMAP connection lost
« Reply #1 on: October 03, 2007, 02:00:31 PM »
I can verify this behavior in the 852 as well, I've been seeing it for several days.

Offline shukko

  • Newbie
  • *
  • Posts: 1
Re: SVN 849 - Settings -> Folders => IMAP connection lost >> SOLUTION
« Reply #2 on: October 05, 2007, 10:45:15 AM »
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 user@domain.com

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 user@domain.com
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

Code: [Select]
$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..

Offline Florianer

  • Full Member
  • ***
  • Posts: 102
still in rc2
« Reply #3 on: October 22, 2007, 04:01:03 PM »
Hi there,
bug still in rc2, but now I got an error log:
Code: [Select]
[22-Oct-2007 19:48:00 +0200] IMAP Error: Authentication for [email]v16576020@mycka.de[/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


Offline ctueck

  • Newbie
  • *
  • Posts: 1
Re: SVN 849 - Settings -> Folders => IMAP connection lost
« Reply #4 on: December 13, 2007, 06:57:06 AM »
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.