Roundcube Community Forum

 

[0.2 stable] The auto-checkmail doesn't work anymore

Started by lucaferr, January 05, 2009, 11:48:48 AM

Previous topic - Next topic

pcrew

#30
Quote from: rosali;16530First 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

lucaferr

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].

rosali

Here is the default code from 0.2 stable:


 
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 <[email protected]>                        | 
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 ?>


Regards,
Rosali

lucaferr

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

rosali

I have tried to locate the problem and addressed it to trunk ... we will see!
Regards,
Rosali

rosali

Regards,
Rosali

Geeforce

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?

Araguaci

#37
I'm could fixed only with this code:

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



...

Araguaci

none of this things help me, just this code:

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



...