Changeset 1107480 in github
- Timestamp:
- Nov 25, 2007 3:40:10 PM (6 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- ed54070
- Parents:
- d5342aa
- Files:
-
- 7 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap.inc (modified) (2 diffs)
-
program/js/app.js (modified) (2 diffs)
-
program/js/list.js (modified) (2 diffs)
-
program/steps/mail/check_recent.inc (modified) (2 diffs)
-
program/steps/mail/list.inc (modified) (1 diff)
-
program/steps/mail/move_del.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rc579961 r1107480 13 13 - Updated Russian localization 14 14 - Fixed some potential security risks (audited by Andris) 15 15 - Only show new messages if they match the current search (#1484176) 16 16 17 17 2007/11/20 (tomekp) -
program/include/rcube_imap.inc
rd5342aa r1107480 442 442 443 443 // count search set 444 if ($this->search_string && $mailbox == $this->mailbox && $mode == 'ALL' )444 if ($this->search_string && $mailbox == $this->mailbox && $mode == 'ALL' && !$force) 445 445 return count((array)$this->search_set); 446 446 … … 935 935 return $this->get_search_set(); 936 936 } 937 938 939 /** 940 * Check if the given message ID is part of the current search set 941 * 942 * @return True on match or if no search request is stored 943 */ 944 function in_searchset($msgid) 945 { 946 if (!empty($this->search_string)) 947 return in_array("$msgid", (array)$this->search_set, true); 948 else 949 return true; 950 } 937 951 938 952 -
program/js/app.js
r0aa430a r1107480 1144 1144 else if (list.key_pressed == list.DELETE_KEY) 1145 1145 this.command('delete'); 1146 else 1147 list.shiftkey = false; 1146 1148 }; 1147 1149 … … 3484 3486 3485 3487 this.set_busy(true, 'checkingmail'); 3486 this.http_request('check-recent', '_t='+(new Date().getTime()), true);3488 this.http_request('check-recent', (this.env.search_request ? '_search='+this.env.search_request+'&' : '') + '_t='+(new Date().getTime()), true); 3487 3489 }; 3488 3490 -
program/js/list.js
ra9dda59 r1107480 536 536 return true; 537 537 538 this.shiftkey = e.shiftKey;539 540 538 var keyCode = document.layers ? e.which : document.all ? event.keyCode : document.getElementById ? e.keyCode : 0; 541 539 var mod_key = rcube_event.get_modifier(e); … … 548 546 549 547 default: 548 this.shiftkey = e.shiftKey; 550 549 this.key_pressed = keyCode; 551 550 this.trigger_event('keypress'); -
program/steps/mail/check_recent.inc
r5eee009 r1107480 28 28 if ($recent_count = $IMAP->messagecount(NULL, 'RECENT', TRUE)) 29 29 { 30 $count = $IMAP->messagecount(NULL, 'ALL', TRUE); 30 // refresh saved search set 31 if (($search_request = get_input_value('_search', RCUBE_INPUT_GPC)) && $IMAP->search_set) 32 $_SESSION['search'][$search_request] = $IMAP->refresh_search(); 33 34 $count_all = $IMAP->messagecount(NULL, 'ALL', TRUE); 31 35 $unread_count = $IMAP->messagecount(NULL, 'UNSEEN', TRUE); 32 36 33 $OUTPUT->set_env('messagecount', $ count);37 $OUTPUT->set_env('messagecount', $IMAP->messagecount()); 34 38 $OUTPUT->command('set_unread_count', $mbox_name, $unread_count, true); 35 39 $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text()); … … 38 42 // add new message headers to list 39 43 $a_headers = array(); 40 for ($i=$recent_count, $id=$count -$recent_count+1; $i>0; $i--, $id++)44 for ($i=$recent_count, $id=$count_all-$recent_count+1; $i>0; $i--, $id++) 41 45 { 46 // skip message if it does not match the current search 47 if (!$IMAP->in_searchset($id)) 48 continue; 49 42 50 $header = $IMAP->get_headers($id, NULL, FALSE); 43 51 if ($header->recent) -
program/steps/mail/list.inc
r5349b78 r1107480 41 41 42 42 // fetch message headers 43 if ($ count = $IMAP->messagecount($mbox_name, 'ALL', !empty($_REQUEST['_refresh'])))43 if ($IMAP->messagecount($mbox_name, 'ALL', !empty($_REQUEST['_refresh']))) 44 44 $a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order); 45 45 46 $count = $IMAP->messagecount($mbox_name); 46 47 $unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh'])); 47 48 -
program/steps/mail/move_del.inc
r9a3567a r1107480 61 61 exit; 62 62 63 // refresh saved sea ch set after moving some messages63 // refresh saved search set after moving some messages 64 64 if (($search_request = get_input_value('_search', RCUBE_INPUT_GPC)) && $IMAP->search_set) 65 65 $_SESSION['search'][$search_request] = $IMAP->refresh_search();
Note: See TracChangeset
for help on using the changeset viewer.
