Roundcube Community Forum

Release Support => Pending Issues => Topic started by: lucaferr on January 05, 2009, 11:48:48 AM

Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: lucaferr on January 05, 2009, 11:48:48 AM
Hello!
I just installed RoundCube 0.2stable and set it up to check for new mails every minute. But it doesn't actually do that! Even the "Check mail" button doesn't work (it appears "Checking for new mail" but, in fact, it doesn't refresh the inbox list). If i click on the inbox folder, to refresh it, it then correctly sees all the new messages received.
How can I fix it? I didn't have this problem with 0.2-beta :(
Thank you and congratulations for making such an excellent software!
Luca from Italy
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 05, 2009, 03:00:18 PM
I didn't cross check your issue. But if you are really sure it is a bug, please report @ trac.roundcube.net. The devs are not very often around here ...
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: joukahainen on January 06, 2009, 08:33:10 AM
Having the same issue. Check mail works only if you refresh browser window after clicking check mail button.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 06, 2009, 09:10:34 AM
CHANGELOG
- Don't set client busy when checking for new messages (#1485276)

When RC is automatically checking for new messages, no loading message is shown anymore.

#1485276 (Automatic new message check shouldn't display feedback) ? RoundCube Webmail ? Trac (http://trac.roundcube.net/ticket/1485276)
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: lucaferr on January 06, 2009, 01:13:47 PM
Hum... Are you sure it's about our problem? In my opinion,
1) It was a different issue;
2) The bugfix was relased 4weeks ago, so I think it's included in 0.2stable...

Am I wrong? Anyone has an idea about how to fix this problem?
Thank You!
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 06, 2009, 02:17:29 PM
I thought you were used to see the "checking for new messages" message and don't see it know. The new behavior is just to check in the background (without showing the message) and to refresh the unread count if there are new messages.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: lucaferr on January 06, 2009, 03:39:46 PM
Ok, it's not a problem not to see the message, but I'd like to receive the new e-mails.
I tell you why: of course it wouldn't be a problem for us, because it's not a big deal to click on the Inbox... But I have roundcube in a company with woman staff... They read the emails when they see it... Can you get me?
Could you tell me how to restore the auto check-mail? I don't care about the "Checking for new emails" message, I just want the new emails to be shown automatically...
Thank you!
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 06, 2009, 03:50:46 PM
There should be an option to focus browser window on new message arrival in the preferences section or as a global setting in main.inc.php ... can't tell you more unless to check changes done on the ticket (see ticket number above) in trac.

Sorry, I'm not a member of the dev crew. In case of complaints or improvement suggestions please post at RoundCube Webmail ? Trac (http://trac.roundcube.net).
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: Konishi on January 07, 2009, 03:38:08 PM
Registered to say that I am experiencing the exact same problem.  I upgraded from 0.2 alpha following all of the included instructions.  Oddly enough this only occurs on some accounts, but not others.  All of the accounts have been in use since before the upgrade.  Rosali seems to have misunderstood the problem; the checkmail function simply does not work, you must refresh the page and reload the whole inbox in order to see new messages at all.  Autocheck and manual check do not work.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: JohnDoh on January 08, 2009, 03:38:40 AM
Do you see any javascript errors on the page?
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rodti on January 08, 2009, 07:16:01 AM
I'm experiencing the same problem on 0.2stable.  The inbox (and folders, as I also have it set to check those) are simply not updated.  They're currently set to check every minute.  If I leave it for ten minutes there will be no new messages, but if I then manually click on the inbox or folder names on the sidebar they update with the correct number of new messages.  Also because of this the title bar of the Roundcube page doesn't update to show the number of new messages.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 08, 2009, 07:45:51 AM
What are your settings in ./config/main.inc.php ::: $rcmail_config['session_lifetime'] ::: $rcmail_config['min_keep_alive'] ??
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rodti on January 08, 2009, 08:19:14 AM
Quote from: rosali;16143
What are your settings in ./config/main.inc.php ::: $rcmail_config['session_lifetime'] ::: $rcmail_config['min_keep_alive'] ??


They're set to:

Code: [Select]

$rcmail_config['session_lifetime'] = 10;  
$rcmail_config['min_keep_alive'] = 60;  


These should be the default values as I've not knowingly altered them.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: sk_illed on January 08, 2009, 08:25:20 AM
same issue here.... works great in firefox though it seems... just not IE7
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rodti on January 08, 2009, 08:35:51 AM
Quote from: sk_illed;16147
same issue here.... works great in firefox though it seems... just not IE7


Ah, I'd never considered that this might be browser specific.  I'm on my work PC at the moment using IE6.  You might just have nailed the issue - can anyone confirm?
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: Napsty on January 08, 2009, 08:55:19 AM
Works for me with both Firefox (3.0.5) and IE7 (7.0.5730.13) on Windows XP Pro SP3.
Installed roundcube today with the tar.gz file downloaded on January 5th.

Update:
Tested it also with IE6 (6.0.2900.5512) on Windows XP Home SP3 -> works.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 08, 2009, 01:13:50 PM
Could you please check if it works when ...

./program/steps/mail/check_recent.inc
Code: [Select]

        //if ($header->recent)


... is out commented ?
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: Konishi on January 08, 2009, 03:46:53 PM
Quote from: rosali;16153
Could you please check if it works when ...

./program/steps/mail/check_recent.inc
Code: [Select]

        //if ($header->recent)


... is out commented ?


That did not fix it for me.  This symptom only occurs with specific accounts and I cannot find any correlation between them (size, age, frequency of use).  There are no javascript errors and it happens with Opera, IE6, and IE7.  I suspect that there is another necessary step for those of us upgrading from previous versions of roundcube that would resolve this.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 08, 2009, 04:07:57 PM
Specific accounts? Please disable caching in addition ...

I was able to reproduce the issue by using an old v0.2 beta installation of a backup which I updated now. I commented out what I've posted above ... Browser cache has been cleared of course. Worked for me ... But caching was and is disabled in the updated installation ...

I noticed that $header->recent is false even if there is a "recent" message. May be messages are touched before it runs into check_recent.inc include ?

Strange ...

___
I'm a mod not a dev !!!
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: Konishi on January 08, 2009, 04:16:15 PM
Quote from: rosali;16157
Specific accounts? Please disable caching in addition ...

I was able to reproduce the issue by using an old v0.2 beta installation of a backup which I updated now. I commented out what I've posted above ... Browser cache has been cleared of course. Worked for me ... But caching was and is disabled in the updated installation ...

I noticed that $header->recent is false even if there is a "recent" message. May be messages are touched before it runs into check_recent.inc include ?

Strange ...

___
I'm a mod not a dev !!!


I started seeing it in accounts that had previously worked now, but your post pointed me to the solution.  Apparently messages ARE being touched (but not being marked as read) by standard email clients.  If thunderbird or outlook is also checking for messages, roundcube will not see them.  Can't believe I didn't catch this earlier, but regardless the devs should possibly look into another method for deciding whether or not to download a new header.

tl;dr-- Stop any other email clients from accessing your accounts at the same time as roundcube.
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: lucaferr on January 09, 2009, 05:57:22 PM
I tried commenting it out... Nothing....

Maybe I found the problem in the logs (it happens every minute):
[Fri Jan 09 17:22:33 2009] [error] [client 192.168.0.4] PHP Notice:  Undefined index:  HTTPS in /WEB/egos_mail/program/include/iniset.php on line 56, referer: http://192.168.0.1:25902/egos_mail/?_task=mail&_mbox=INBOX&_refresh=1


Could it be the cause? How can I solve it?
Thanks!
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 10, 2009, 01:28:30 AM
Replace line 56 by ...
Code: [Select]

if  (isset($_SERVER['HTTPS'])) {
   ini_set('session.cookie_secure', ($_SERVER['HTTPS'] && ($_SERVER['HTTPS'] != 'off'))?1:0);
} else {
   ini_set('session.cookie_secure', 0);
}

... but I don't not believe that's the reason ...

The URL for the recent messages check should be:
./?_task=mail&_action=check-recent&_t=1231568689322&_remote=1

Quote from trunk:
_________________
Quote

Changeset 2211
 Timestamp: 01/02/09 08:48:10 (8 days ago)
Author: till
Message: * fixing notice, moved error_reporting one up, added @todo
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: lucaferr on January 11, 2009, 09:13:39 AM
You were right... Now my log is totally empty, but the auto check-mail and the check mail button don't work yet! :(
Any ideas?
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 11, 2009, 02:31:22 PM
Are you sure not to have  a n y  Javascript errors on the page?
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: cboshuizen on January 11, 2009, 07:03:15 PM
I can confirm that this issue occurs for me when there are other IMAP clients touching the file, as pointed out on page 2.  

Make sure your thunderbird, etc are closed when testing this feature.

Chris
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: Konishi on January 11, 2009, 07:15:44 PM
Quote from: cboshuizen;16238
I can confirm that this issue occurs for me when there are other IMAP clients touching the file, as pointed out on page 2.  

Make sure your thunderbird, etc are closed when testing this feature.

Chris


Yes, maybe everyone overlooked my post since it was the last on Page 2, but this does seem to be the cause of the problem.  Could everyone else please check if this is the case?
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: lucaferr on January 12, 2009, 05:05:38 PM
It could be... I only use RoundCube as client, but I have "imapsync" that synchronizes the mailbox on my own server with the mailbox on the provider's one every 4 minutes. I read that it synchronizes everything but the "/recent" attribute, cause it can't be modified by a client...
I can't disable it, otherwise I wouldn't receive e-mails at all...
Can you help me? I'm getting desperate...
Maybe we could find a way to only check on mails without "/seen" instead of mails with "/recent"...?
I dumped some javascript errors I have, don't know if it helps:
Quote

Avviso: anonymous function does not always return a value
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/common.js
Riga: 85
Codice sorgente:
},get_mouse_pos:function(e){
Avviso: function rcube_layer does not always return a value
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/common.js
Riga: 274, Colonna: 1
Codice sorgente:
};
Avviso: anonymous function does not always return a value
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 386, Colonna: 22
Codice sorgente:
};
Avviso: test for equality (==) mistyped as assignment (=)?
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 476, Colonna: 55
Codice sorgente:
if(_45=document.getElementById("rcm"+this.env.sort_col)){
Avviso: test for equality (==) mistyped as assignment (=)?
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 479, Colonna: 41
Codice sorgente:
if(_45=document.getElementById("rcm"+_43)){
Avviso: test for equality (==) mistyped as assignment (=)?
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 698, Colonna: 28
Codice sorgente:
if(uid=this.get_single_uid()){
Avviso: variable _64 redeclares argument
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 992, Colonna: 11
Codice sorgente:
var li,pos,_64,_68;
Avviso: test for equality (==) mistyped as assignment (=)?
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 998, Colonna: 27
Codice sorgente:
if(li=this.get_folder_li(k)){
Avviso: anonymous function does not always return a value
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 1144
Codice sorgente:
};
Avviso: test for equality (==) mistyped as assignment (=)?
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 1685, Colonna: 39
Codice sorgente:
if(f=rcube_find_object("_draft_saveid")){
Avviso: test for equality (==) mistyped as assignment (=)?
File sorgente: http://10.8.0.10:25902/egos_mail/program/js/app.js
Riga: 2849, Colonna: 32
Codice sorgente:
if(item=this.get_folder_li(mbox)){
And thousands of other similars... I use firefox with "Enable JS strict warnings" enabled.
Sorry for the parts in Italian... "Riga = row; Colonna = column",
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 13, 2009, 05:58:02 AM
@lucaferr:

Adjust ./program/steps/mail/check_recent.inc to refresh the message list if there are unseen messages instead of recent messages ...
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: pcrew on January 20, 2009, 02:32:43 PM
Quote from: rosali;16306
@lucaferr:

Adjust ./program/steps/mail/check_recent.inc to refresh the message list if there are unseen messages instead of recent messages ...


what do we adjust exactly to try and resolve this problem?
should  we be changing:
if ($header->recent)

to

if ($header->unseen)

or some other option of "RECENT" to "UNSEEN" (there are many "RECENT" occurrence in caps)
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 20, 2009, 03:06:03 PM
First try to  o u t c o m m e n t ...

Code: [Select]

// if ($header->recent)


If it does not help then replace RECENT by UNSEEN (only uppercase occurrencies within this file)!


http://www.roundcubeforum.net/deutsch/4102-0-2-stable-autocheck-nach-neuen-emails-funktioniert-nicht.html
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: pcrew on January 20, 2009, 03:59:22 PM
Quote from: rosali;16530
First try to  o u t c o m m e n t ...

If it does not help then replace RECENT by UNSEEN (only uppercase occurrencies within this file)!


http://www.roundcubeforum.net/deutsch/4102-0-2-stable-autocheck-nach-neuen-emails-funktioniert-nicht.html

Rosali

changing "RECENT" to "UNSEEN" now updates the unread email count for the inbox folder but still does not refresh the screen to show the new messages.

Of-course this is on clicking the "check mail" button as autocheck doesn't do anything.

Update:
so now if i comment the header>recent line then autocheck works and refreshes the unread mail count and the email list to show the new message(s) that have arrived in the inbox.

Note:
this is awesome i seem to have made all the suggested changes and fixes from this thread and the comments in the download url thread and i seem to have complete mvision theme setup.

Bug
from comment# 93 here
http://www.roundcubeforum.net/theme-releases/3001-mvision-updated-upgraded-v2-10.html#post15785

this line did not exist in my common.css file and upon adding that "borders" around the images in FF disappeared and had to make similar changes in ie6.css as well. i will try ie7 in a day or two and just ot note ie7.css is also missing this "img" line
Title: Still doesn't work...
Post by: lucaferr on January 25, 2009, 09:52:37 PM
In my check_recent.inc there is no // if ($header->recent). It's outcommented by default!
So I changed all the "RECENT" to "UNSEEN". Now the new message counter works well, but the message list doesn't get refreshed, so I don't see new emails unless I click on Inbox!
How can I fix it?
Thanks!!!

[Note that I use 0.2stable 30december, the one downloadable from sourceforge].
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 26, 2009, 12:47:59 AM
Here is the default code from 0.2 stable:

Code: [Select]

 
1 <?php 
2  
/* 
4  +-----------------------------------------------------------------------+ 
5  | program/steps/mail/check_recent.inc                                   | 
6  |                                                                       | 
7  | This file is part of the RoundCube Webmail client                     | 
8  | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                 | 
9  | Licensed under the GNU GPL                                            | 
10  |                                                                       | 
11  | PURPOSE:                                                              | 
12  |   Check for recent messages, in all mailboxes                         | 
13  |                                                                       | 
14  +-----------------------------------------------------------------------+ 
15  | Author: Thomas Bruederli <roundcube@gmail.com>                        | 
16  +-----------------------------------------------------------------------+ 
17  
18  $Id: check_recent.inc 233 2006-06-26 17:31:20Z richs $ 
19  
20 */ 
21  
22 $a_mailboxes 
$IMAP->list_mailboxes(); 
23 $check_all = (bool)$RCMAIL->config->get('check_all_folders'); 
24  
25 
foreach ($a_mailboxes as $mbox_name) { 
26   if ($mbox_name == $IMAP->get_mailbox_name()) { 
27     if ($recent_count $IMAP->messagecount(NULL'RECENT'TRUE)) { 
28       // refresh saved search set 
29       if (($search_request get_input_value('_search'RCUBE_INPUT_GPC)) && $IMAP->search_set
30         $_SESSION['search'][$search_request] = $IMAP->refresh_search(); 
31          
32       $count_all 
$IMAP->messagecount(NULL'ALL'TRUE); 
33       $unread_count $IMAP->messagecount(NULL'UNSEEN'TRUE); 
34  
35       $OUTPUT
->set_env('messagecount'$IMAP->messagecount()); 
36       $OUTPUT->set_env('pagesize'$IMAP->page_size); 
37       $OUTPUT->set_env('pagecount'ceil($IMAP->messagecount()/$IMAP->page_size)); 
38       $OUTPUT->command('set_unread_count'$mbox_name$unread_count, ($mbox_name == 'INBOX')); 
39       $OUTPUT->command('set_rowcount'rcmail_get_messagecount_text()); 
40       $OUTPUT->command('set_quota'rcmail_quota_content($IMAP->get_quota())); 
41  
42       
if (rcmail::get_instance()->config->get('focus_on_new_message',true)) 
43         $OUTPUT->command('new_message_focus'); 
44  
45       
// add new message headers to list 
46       $a_headers = array(); 
47       for ($i=$recent_count$id=$count_all-$recent_count+1$i>0$i--, $id++) 
48       
49         // skip message if it does not match the current search 
50         if (!$IMAP->in_searchset($id)) 
51           continue; 
52          
53         $header 
$IMAP->get_headers($idNULLFALSE); 
54         if ($header->recent
55           $a_headers[] = $header
56       
57  
58       rcmail_js_message_list
($a_headersTRUE); 
59     
60   
61   else if ($IMAP->messagecount($mbox_name'RECENT'$check_all)) { 
62     $OUTPUT->command('set_unread_count'$mbox_name$IMAP->messagecount($mbox_name'UNSEEN'$check_all)); 
63   
64 
65  
66 $OUTPUT
->send(); 
67  
68 ?>


Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: lucaferr on January 26, 2009, 09:09:58 AM
Great!
there was a stupid typing mistake (made by me) in mine....
Now I outcommented that line and I changed all the "RECENT" into "UNSEEN" and works perfectly!!!
Thank you very much, Have a nice day!
Luca
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 26, 2009, 12:47:51 PM
I have tried to locate the problem and addressed it to trunk ... we will see!
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: rosali on January 27, 2009, 02:31:52 PM
Please track the following ticket. I hope there will be a final fix soon!

#1485702 (Update message list on recent messages stopped working) ? RoundCube Webmail ? Trac (http://trac.roundcube.net/ticket/1485702)
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: Geeforce on August 08, 2009, 10:18:31 AM
Had to do this on 0.2.2 stable too. But ok running on php 5.1.6 maybe that is the issue with me. Could that be so?
Title: [0.2 stable] The auto-checkmail doesn't work anymore
Post by: Araguaci on April 29, 2010, 03:04:17 PM
I'm could fixed only with this code:

/webmaildesenv/skins/[name]/templates/mail.html
...
   



...
Title: how to fixed refresh "INBOX"
Post by: Araguaci on April 29, 2010, 03:13:13 PM
none of this things help me, just this code:

/webmaildesenv/skins/[name]/templates/mail.html
...
   



...