Author Topic: [0.2 stable] The auto-checkmail doesn't work anymore  (Read 9331 times)

Offline pcrew

  • Newbie
  • *
  • Posts: 2
[0.2 stable] The auto-checkmail doesn't work anymore
« Reply #30 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
« Last Edit: January 20, 2009, 04:07:51 PM by pcrew »

Offline lucaferr

  • Newbie
  • *
  • Posts: 7
Still doesn't work...
« Reply #31 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].

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
[0.2 stable] The auto-checkmail doesn't work anymore
« Reply #32 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 ?>


Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline lucaferr

  • Newbie
  • *
  • Posts: 7
[0.2 stable] The auto-checkmail doesn't work anymore
« Reply #33 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

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
[0.2 stable] The auto-checkmail doesn't work anymore
« Reply #34 on: January 26, 2009, 12:47:51 PM »
I have tried to locate the problem and addressed it to trunk ... we will see!
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
[0.2 stable] The auto-checkmail doesn't work anymore
« Reply #35 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
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline Geeforce

  • Newbie
  • *
  • Posts: 6
[0.2 stable] The auto-checkmail doesn't work anymore
« Reply #36 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?

Offline Araguaci

  • Newbie
  • *
  • Posts: 5
    • http://www.artesdosul.com
[0.2 stable] The auto-checkmail doesn't work anymore
« Reply #37 on: April 29, 2010, 03:04:17 PM »
I'm could fixed only with this code:

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



...
« Last Edit: April 29, 2010, 03:10:22 PM by Araguaci »

Offline Araguaci

  • Newbie
  • *
  • Posts: 5
    • http://www.artesdosul.com
how to fixed refresh "INBOX"
« Reply #38 on: April 29, 2010, 03:13:13 PM »
none of this things help me, just this code:

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



...